Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v2.0.1
func New(daemonServer DaemonServer, opts ...grpc.ServerOption) *grpc.Server
Types ¶
type DaemonServer ¶
type DaemonServer interface { // Download triggers client to download file Download(context.Context, *dfdaemon.DownRequest, chan<- *dfdaemon.DownResult) error // GetPieceTasks get piece tasks from other peers GetPieceTasks(context.Context, *base.PieceTaskRequest) (*base.PiecePacket, error) // SyncPieceTasks sync piece tasks info with other peers SyncPieceTasks(dfdaemon.Daemon_SyncPieceTasksServer) error // CheckHealth check daemon health CheckHealth(context.Context) error }
DaemonServer refer to dfdaemon.DaemonServer
Click to show internal directories.
Click to hide internal directories.