clients

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: GPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(cfg config.Config, logger api.Logger) *Service

func (*Service) Inject

func (s *Service) Inject(ctx context.Context, meta api.PreparedMetadata, torrent api.TorrentResult) error

Inject dispatches a prepared torrent to the configured injection clients. URL-only torrents require a URL-capable client unless global/default fallback can select one; explicit tracker or caller selections that resolve only to watch-folder clients return internalerrors.ErrInvalidInput instead of a successful no-op.

func (*Service) SearchPathedTorrents

func (s *Service) SearchPathedTorrents(ctx context.Context, meta api.PreparedMetadata) (api.ClientSearchResult, error)

Jump to

Keyboard shortcuts

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