Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResultSender ¶
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 ¶
func New(peerHost *schedulerv1.PeerHost, peerTaskManager peer.TaskManager, storageManager storage.Manager, recursiveConcurrent int, cacheRecursiveMetadata time.Duration, downloadOpts []grpc.ServerOption, peerOpts []grpc.ServerOption) (Server, error)
Click to show internal directories.
Click to hide internal directories.