This commit is contained in:
2026-04-03 11:19:00 +02:00
parent 2416f528bb
commit 26265e776c
14 changed files with 533 additions and 11 deletions
+12
View File
@@ -0,0 +1,12 @@
package storage
import (
"context"
"git.tornberg.me/go-otel/internal/websocket"
)
type Store interface {
Append(ctx context.Context, entry websocket.HistoryEntry) error
GetHistory(ctx context.Context, limit int) ([]websocket.HistoryEntry, error)
Search(ctx context.Context, query string, limit int) ([]websocket.HistoryEntry, error)
}