Documentation ¶
Index ¶
- func CheckRemote(rcCli *downloader.RCloneClient, src string) error
- func DownloadManifest(ctx context.Context, session DownloadSession) ([]fs.DirEntry, error)
- func Logger(ctx context.Context) log.Logger
- func NewTorrentSession(cli *TorrentClient, chain string) *torrentSession
- func TempDir(ctx context.Context) string
- func WithLogger(ctx context.Context, logger log.Logger) context.Context
- func WithTempDir(ctx context.Context, tempDir string) context.Context
- type CreateNewTorrentClientConfig
- type DownloadSession
- type LType
- type Locator
- type TorrentClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRemote ¶
func CheckRemote(rcCli *downloader.RCloneClient, src string) error
func DownloadManifest ¶
func NewTorrentSession ¶
func NewTorrentSession(cli *TorrentClient, chain string) *torrentSession
Types ¶
type CreateNewTorrentClientConfig ¶
type CreateNewTorrentClientConfig struct { Chain string WebSeeds string DownloadRate string UploadRate string Verbosity int TorrentPort int ConnsPerFile int DisableIPv6 bool DisableIPv4 bool NatFlag string Logger log.Logger TempDir string CleanDir bool }
func NewDefaultTorrentClientConfig ¶
func NewDefaultTorrentClientConfig(chain string, torrentDir string, logger log.Logger) CreateNewTorrentClientConfig
func NewTorrentClientConfigFromCobra ¶
func NewTorrentClientConfigFromCobra(cliCtx *cli.Context, chain string) CreateNewTorrentClientConfig
type DownloadSession ¶
type Locator ¶
func ParseLocator ¶
type TorrentClient ¶
func NewTorrentClient ¶
func NewTorrentClient(ctx context.Context, config CreateNewTorrentClientConfig) (*TorrentClient, error)
Click to show internal directories.
Click to hide internal directories.