14 lines
396 B
Go
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)
|
|
}
|