Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server interface { clientutil.KeepAlive ServeDownload(listener net.Listener) error ServePeer(listener net.Listener) error Stop() }
func NewServer ¶
func NewServer(peerHost *scheduler.PeerHost, peerTaskManager peer.TaskManager, storageManager storage.Manager, downloadOpts []grpc.ServerOption, peerOpts []grpc.ServerOption) (Server, error)
Click to show internal directories.
Click to hide internal directories.