Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Definitions embed.FS
Functions ¶
This section is empty.
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 Start() error TestApi(ctx context.Context, req domain.IndexerTestApiRequest) error }
func NewService ¶
func NewService(log logger.Logger, config *domain.Config, repo domain.IndexerRepo, apiService APIService, scheduler scheduler.Service) Service
Click to show internal directories.
Click to hide internal directories.