Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Definitions embed.FS
View Source
var ErrIndexerDefinitionDeprecated = errors.New("DEPRECATED: indexer definition version")
Functions ¶
func OpenAndProcessDefinition ¶ added in v1.36.0
func OpenAndProcessDefinition(file string) (*domain.IndexerDefinition, error)
Types ¶
type APIService ¶
type APIService interface { TestConnection(ctx context.Context, req domain.IndexerTestApiRequest) (bool, error) GetTorrentByID(ctx context.Context, indexer string, torrentID string) (*domain.TorrentBasic, error) AddClient(indexer string, settings map[string]string) error RemoveClient(indexer string) error }
func NewAPIService ¶
func NewAPIService(log logger.Logger) APIService
type Service ¶
type Service interface { Store(ctx context.Context, indexer domain.Indexer) (*domain.Indexer, error) Update(ctx context.Context, indexer domain.Indexer) (*domain.Indexer, error) Delete(ctx context.Context, id int) error FindByFilterID(ctx context.Context, id int) ([]domain.Indexer, error) FindByID(ctx context.Context, id int) (*domain.Indexer, error) List(ctx context.Context) ([]domain.Indexer, error) GetAll() ([]*domain.IndexerDefinition, error) GetTemplates() ([]domain.IndexerDefinition, error) LoadIndexerDefinitions() error GetIndexersByIRCNetwork(server string) []*domain.IndexerDefinition GetTorznabIndexers() []domain.IndexerDefinition GetMappedDefinitionByName(name string) (*domain.IndexerDefinition, error) Start() error TestApi(ctx context.Context, req domain.IndexerTestApiRequest) error ToggleEnabled(ctx context.Context, indexerID int, enabled bool) error }
func NewService ¶
func NewService(log logger.Logger, config *domain.Config, repo domain.IndexerRepo, releaseRepo domain.ReleaseRepo, apiService APIService, scheduler scheduler.Service) Service
Click to show internal directories.
Click to hide internal directories.