package db import ( "context" "github.com/jacek/pamietnik/backend/internal/domain" ) // TrackpointStorer is the interface consumed by HTTP handlers. // The concrete TrackpointStore satisfies it. type TrackpointStorer interface { UpsertBatch(ctx context.Context, userID string, points []domain.Trackpoint) (accepted []string, rejected []RejectedItem, err error) ListByDate(ctx context.Context, userID, date string) ([]domain.Trackpoint, error) ListDays(ctx context.Context, userID, from, to string) ([]domain.DaySummary, error) } // StopStorer is the interface consumed by HTTP handlers. type StopStorer interface { ListByDate(ctx context.Context, userID, date string) ([]domain.Stop, error) } // SuggestionStorer is the interface consumed by HTTP handlers. type SuggestionStorer interface { ListByDate(ctx context.Context, userID, date string) ([]domain.Suggestion, error) }