Versions in this module Expand all Collapse all v0 v0.13.0 Nov 21, 2026 Changes in this version + func ValidCategory(c string) bool + type Activity struct + Category string + CreatedAt string + Detail map[string]any + ID string + MovieID *string + Title string + Type string + type AttentionItem struct + CreatedAt string + Detail string + GrabID string + Kind string + MovieID string + ReleaseTitle string + type AttentionResult struct + Counts struct{ ... } + Items []AttentionItem + type Category string + const CategoryGrabFailed + const CategoryGrabLegacy + const CategoryGrabSucceeded + const CategoryHealth + const CategoryImportFailed + const CategoryImportLegacy + const CategoryImportSucceeded + const CategoryMovie + const CategoryTask + type ListResult struct + Activities []Activity + Total int64 + type Service struct + func NewService(q dbgen.Querier, logger *slog.Logger) *Service + func (s *Service) List(ctx context.Context, category *string, since *string, limit int64) (*ListResult, error) + func (s *Service) NeedsAttention(ctx context.Context, window time.Duration, perKind int) (*AttentionResult, error) + func (s *Service) Prune(ctx context.Context, olderThan time.Duration) error + func (s *Service) Subscribe(bus *events.Bus)