Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CdnClient ¶
type CdnClient interface { ObtainSeeds(ctx context.Context, sr *cdnsystemv1.SeedRequest, opts ...grpc.CallOption) (*PieceSeedStream, error) GetPieceTasks(ctx context.Context, addr dfnet.NetAddr, req *commonv1.PieceTaskRequest, opts ...grpc.CallOption) (*commonv1.PiecePacket, error) SyncPieceTasks(ctx context.Context, addr dfnet.NetAddr, ptr *commonv1.PieceTaskRequest, opts ...grpc.CallOption) (cdnsystemv1.Seeder_SyncPieceTasksClient, error) UpdateState(addrs []dfnet.NetAddr) Close() error }
CdnClient see cdnsystemv1.CdnClient
func GetClientByAddr ¶
func GetClientByAddr(addrs []dfnet.NetAddr, opts ...grpc.DialOption) CdnClient
func GetElasticClientByAddrs ¶
type PieceSeedStream ¶
func (*PieceSeedStream) Recv ¶
func (pss *PieceSeedStream) Recv() (ps *cdnsystemv1.PieceSeed, err error)
Click to show internal directories.
Click to hide internal directories.