app

package
v0.0.0-...-1624791 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 17 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
}

func New

func New(dir string, sets *model.Settings, trackers []string) (*App, error)

func (*App) Close

func (app *App) Close() error

func (*App) ReadaheadSize

func (app *App) ReadaheadSize() int64

func (*App) Torrent

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

func (*App) TrackHash

func (app *App) TrackHash(ctx context.Context, hash string) (*torrent.Torrent, error)

func (*App) TrackMagnet

func (app *App) TrackMagnet(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