Files
go-otel/internal/storage/store.go
T
mats d83fe85864
Build and Publish / Metadata (push) Has been cancelled
Build and Publish / BuildAndDeployAmd64 (push) Has been cancelled
fix
2026-04-05 18:27:35 +02:00

14 lines
396 B
Go

package storage
import (
"context"
"git.tornberg.me/go-otel/internal/websocket"
)
// Store interface for telemetry history persistence.
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)
}