master

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Master

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

func NewMaster

func NewMaster(ctx context.Context) *Master

func (*Master) Bootstrap

func (m *Master) Bootstrap() (e error)

func (*Master) ForceReannounce

func (m *Master) ForceReannounce(wid string) error

func (*Master) GetConnectedWorkers

func (m *Master) GetConnectedWorkers() (_ map[string]*swarm.SwarmWorker)

func (*Master) IsMaster

func (*Master) IsMaster() bool

func (*Master) Register

func (m *Master) Register(ctx context.Context, req *pb.RegistrationRequest) (_ *emptypb.Empty, e error)

func (*Master) RemoveTorrent

func (m *Master) RemoveTorrent(wid string, name string, hash string, wdata ...bool) (uint64, uint64, error)

func (*Master) RequestFreeSpaceFromWorker

func (m *Master) RequestFreeSpaceFromWorker(wid string) (uint64, error)

func (*Master) RequestTorrentsFromWorker

func (m *Master) RequestTorrentsFromWorker(wid string) ([]*deluge.Torrent, error)

func (*Master) SaveTorrentFile

func (m *Master) SaveTorrentFile(wid string, fname string, fbytes *[]byte) (int64, error)

Jump to

Keyboard shortcuts

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