list

package
v1.59.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2025 License: GPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job interface {
	cron.Job
	RunE(ctx context.Context) error
}

func NewRefreshListsJob

func NewRefreshListsJob(log zerolog.Logger, listSvc RefreshListSvc) Job

type RefreshListSvc

type RefreshListSvc interface {
	RefreshAll(ctx context.Context) error
}

type RefreshListsJob

type RefreshListsJob struct {
	// contains filtered or unexported fields
}

func (*RefreshListsJob) Run

func (job *RefreshListsJob) Run()

func (*RefreshListsJob) RunE

func (job *RefreshListsJob) RunE(ctx context.Context) error

type Service

type Service interface {
	List(ctx context.Context) ([]*domain.List, error)
	FindByID(ctx context.Context, id int64) (*domain.List, error)
	Store(ctx context.Context, list *domain.List) error
	Update(ctx context.Context, list *domain.List) error
	Delete(ctx context.Context, id int64) error
	RefreshAll(ctx context.Context) error
	RefreshList(ctx context.Context, listID int64) error
	RefreshArrLists(ctx context.Context) error
	RefreshOtherLists(ctx context.Context) error
	Start()
}

func NewService

func NewService(log logger.Logger, repo domain.ListRepo, downloadClientSvc download_client.Service, filterSvc filter.Service, schedulerSvc scheduler.Service) Service

type Titles

type Titles struct {
	// contains filtered or unexported fields
}

func NewTitleSet added in v1.59.0

func NewTitleSet() *Titles

func (*Titles) Add

func (ts *Titles) Add(title string, matchRelease bool)

func (*Titles) Titles

func (ts *Titles) Titles() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL