Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResultSender ¶ added in v2.0.6
type ResultSender interface {
Send(*dfdaemonv1.DownResult) error
}
type Server ¶
type Server interface { util.KeepAlive ServeDownload(listener net.Listener) error ServePeer(listener net.Listener) error OnNotify(*config.DynconfigData) Stop() }
func New ¶ added in v2.0.1
func New(peerHost *schedulerv1.PeerHost, peerTaskManager peer.TaskManager, storageManager storage.Manager, peerExchanger pex.PeerExchangeRPC, schedulerClient schedulerclient.V1, recursiveConcurrent int, seedConcurrent int64, cacheRecursiveMetadata time.Duration, downloadOpts []grpc.ServerOption, peerOpts []grpc.ServerOption) (Server, error)
Click to show internal directories.
Click to hide internal directories.