Versions in this module Expand all Collapse all v0 v0.13.0 Nov 21, 2026 Changes in this version + type Service struct + func NewService(q dbgen.Querier, msSvc *mediaserver.Service, movieSvc *movie.Service, ...) *Service + func (s *Service) Stats(ctx context.Context) (*WatchStats, error) + func (s *Service) Sync(ctx context.Context) error + func (s *Service) WatchStatusBatch(ctx context.Context) (map[string]*WatchStatus, error) + func (s *Service) WatchStatusForMovie(ctx context.Context, movieID string) (*WatchStatus, error) + type WatchStats struct + Percentage float64 + TotalCount int64 + WatchedCount int64 + type WatchStatus struct + LastWatchedAt *string + PlayCount int64 + Watched bool