Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPieceTasks ¶
func GetPieceTasks(ctx context.Context, destPeer *scheduler.PeerPacket_DestPeer, ptr *base.PieceTaskRequest, opts ...grpc.CallOption) (*base.PiecePacket, error)
Types ¶
type DaemonClient ¶
type DaemonClient interface { Download(ctx context.Context, req *dfdaemon.DownRequest, opts ...grpc.CallOption) (*DownResultStream, error) GetPieceTasks(ctx context.Context, addr dfnet.NetAddr, ptr *base.PieceTaskRequest, opts ...grpc.CallOption) (*base.PiecePacket, error) CheckHealth(ctx context.Context, target dfnet.NetAddr, opts ...grpc.CallOption) error Close() error }
DaemonClient see dfdaemon.DaemonClient
func GetClientByAddr ¶
func GetClientByAddr(addrs []dfnet.NetAddr, opts ...grpc.DialOption) (DaemonClient, error)
func GetElasticClientByAddrs ¶
func GetElasticClientByAddrs(addrs []dfnet.NetAddr, opts ...grpc.DialOption) (DaemonClient, error)
type DownResultStream ¶
func (*DownResultStream) Recv ¶
func (drs *DownResultStream) Recv() (dr *dfdaemon.DownResult, err error)
Click to show internal directories.
Click to hide internal directories.