app

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

TODO add torrent management(disk cache size control, start/stop and etc.).

func New

func New(service *settings.Settings) (*App, error)

func (*App) Client

func (app *App) Client() *torrent.Client

func (*App) Close

func (app *App) Close() error

func (*App) Torrent

func (app *App) Torrent(hash string) (*torrent.Torrent, bool)

func (*App) Track

func (app *App) Track(t *torrent.Torrent) (*torrent.Torrent, error)

func (*App) TrackContext

func (app *App) TrackContext(ctx context.Context, t *torrent.Torrent) (*torrent.Torrent, error)

func (*App) TrackHash

func (app *App) TrackHash(hash metainfo.Hash) (*torrent.Torrent, error)

func (*App) TrackHashContext

func (app *App) TrackHashContext(ctx context.Context, hash metainfo.Hash) (*torrent.Torrent, error)

func (*App) TrackMagnet

func (app *App) TrackMagnet(magnet *metainfo.Magnet) (*torrent.Torrent, error)

func (*App) TrackMagnetContext

func (app *App) TrackMagnetContext(ctx context.Context, magnet *metainfo.Magnet) (*torrent.Torrent, error)

Jump to

Keyboard shortcuts

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