Files
sendico/api/pkg/db/template/tseries.go
Stephan D 62a6631b9a
All checks were successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
service backend
2025-11-07 18:35:26 +01:00

15 lines
351 B
Go

package template
import (
"context"
tspoint "github.com/tech/sendico/pkg/db/tseries/point"
)
type TimeSeries[T tspoint.TimePoint] interface {
// Insert adds a single point into the series.
Insert(ctx context.Context, point T) error
// InsertMany adds multiple points in one bulk operation.
InsertMany(ctx context.Context, points []T) error
}