Versions in this module Expand all Collapse all v0 v0.1.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 + SeriesID *string + Title string + Type string + type AttentionItem struct + CreatedAt string + Detail string + EpisodeID string + GrabID string + InfoHash string + Kind string + ReleaseTitle string + SeriesID string + type AttentionResult struct + Counts struct{ ... } + Items []AttentionItem + type Category string + const CategoryGrabFailed + const CategoryGrabSucceeded + const CategoryHealth + const CategoryImportFailed + const CategoryImportSucceeded + const CategoryShow + const CategoryStalled + const CategoryTask + func AllCategories() []Category + type ListResult struct + Activities []Activity + Total int64 + type Service struct + func NewService(q db.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)