Versions in this module Expand all Collapse all v0 v0.1.0 Nov 9, 2026 Changes in this version + const KindUpdateSeries + const ReasonFirstListed + const ReasonHealthier + const ReasonLanguage + const ReasonNewest + const ReasonOnlySource + const ReasonPinned + const ReasonPriority + var ErrNotFound = errors.New("chapters: not found") + var ErrNotThisChapter = errors.New("chapters: the variant isn't a copy of this chapter") + func DisplayTitle(name string) string + func Label(number *float64, volume, name string) string + func NumberOf(number *float64, name string) *float64 + func VolumeOf(volume, name string) string + type Chapter struct + Chosen *VariantView + New bool + Variants int + type CheckState struct + Checking int + Failing int + LastCheckedAt *time.Time + type Choice struct + Reason string + Variant Variant + func Choose(g Group, pinned *uuid.UUID, languages []string) Choice + type Detail struct + All []VariantView + type Group struct + ExtraKey string + Number *float64 + Variants []Variant + func GroupVariants(vs []Variant) []Group + func (g Group) Volume() string + type Parsed struct + Extra bool + Number *float64 + NumberEnd *float64 + Title string + Volume string + func Parse(name string) Parsed + type Service struct + func NewService(st *store.Store, host *plugins.Host, q *queue.Queue, lim *limits.Registry, ...) *Service + func (s *Service) ChecksOf(ctx context.Context, workIDs []uuid.UUID) (CheckState, error) + func (s *Service) Get(ctx context.Context, workID, chapterID, userID uuid.UUID) (Detail, error) + func (s *Service) List(ctx context.Context, workID, userID uuid.UUID) ([]Chapter, error) + func (s *Service) MarkSeen(ctx context.Context, userID, workID uuid.UUID) (bool, error) + func (s *Service) NewCounts(ctx context.Context, userID uuid.UUID, workIDs []uuid.UUID) (map[uuid.UUID]int64, error) + func (s *Service) OnNewChapters(f func(ctx context.Context, workID uuid.UUID, chapterIDs []uuid.UUID)) + func (s *Service) Pin(ctx context.Context, chapterID uuid.UUID, variantID *uuid.UUID) (db.Chapter, error) + func (s *Service) QueueUpdate(ctx context.Context, se db.SourceSeries, by uuid.UUID, priority int32, ...) (db.Task, error) + func (s *Service) Refresh(ctx context.Context, workID, by uuid.UUID) (int, error) + func (s *Service) RefreshWorks(ctx context.Context, workIDs []uuid.UUID, by uuid.UUID) (int, error) + func (s *Service) ScheduleAll(ctx context.Context, spread time.Duration) (int, error) + func (s *Service) SeriesAttached(ctx context.Context, se db.SourceSeries) + func (s *Service) SeriesChapters(ctx context.Context, workID, seriesID uuid.UUID) (db.SourceSeries, []db.SourceChapter, error) + func (s *Service) SourcesChanged(ctx context.Context, sourceIDs []string) + func (s *Service) Unify(ctx context.Context, workID uuid.UUID) (int, error) + func (s *Service) UnifyAll(ctx context.Context) (int, error) + func (s *Service) Updates(ctx context.Context, userID uuid.UUID, workIDs []uuid.UUID, ...) ([]Update, error) + func (s *Service) WorkChanged(ctx context.Context, workID uuid.UUID) + type Update = db.UpdatesRow + type UpdateCursor struct + AppearedAt time.Time + ChapterID uuid.UUID + type Variant struct + Announce bool + Health string + ID uuid.UUID + Key string + Lang string + Name string + Number *float64 + Position int32 + Priority int32 + Scanlator string + SeriesID uuid.UUID + SourceID string + Unusable bool + UploadedAt *time.Time + Volume string + type VariantView struct + SourceName string