daemon

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2016 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Pidfile     string
	Root        string
	ConnTimeout time.Duration
	UseHardlink bool

	BtEnable          bool
	BtSeeder          bool
	BtTrackers        []string
	BtSeederServer    []string
	UploadRateLimit   int
	DownloadRateLimit int
}

type Daemon

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

func NewDaemon

func NewDaemon(config *Config) (*Daemon, error)

func (*Daemon) GetTorrent

func (daemon *Daemon) GetTorrent(ctx context.Context, r *types.GetTorrentRequest) (*types.GetTorrentResponse, error)

func (*Daemon) StartDownload

func (daemon *Daemon) StartDownload(ctx context.Context, r *types.StartDownloadRequest) (*types.StartDownloadResponse, error)

func (*Daemon) Status

func (daemon *Daemon) Status(ctx context.Context, r *types.StatusRequest) (*types.StatusResponse, error)

func (*Daemon) StopDownload

func (daemon *Daemon) StopDownload(ctx context.Context, r *types.StopDownloadRequest) (*types.StopDownloadResponse, error)

type OciImage

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

func (*OciImage) Close

func (i *OciImage) Close()

Jump to

Keyboard shortcuts

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