server

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: AGPL-3.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyMagnetLink  = errors.New("could not work with empty magnet link")
	ErrEmptyPath        = errors.New("could not work with empty path")
	ErrCouldNotFindPath = errors.New("could not find path in torrent")
)

Functions

This section is empty.

Types

type Gateway

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

func NewGateway

func NewGateway(
	laddr string,
	storage string,
	apiUsername string,
	apiPassword string,
	oidcIssuer string,
	oidcClientID string,
	debug bool,

	onDownloadProgress func(torrentMetrics v1.TorrentMetrics, fileMetrics v1.FileMetrics),

	ctx context.Context,
) *Gateway

func (*Gateway) Close

func (g *Gateway) Close() error

func (*Gateway) Open

func (g *Gateway) Open() error

func (*Gateway) Wait

func (g *Gateway) Wait() error

Jump to

Keyboard shortcuts

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