Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v2.0.6
type Client interface { // ObtainSeeds triggers the seed peer to download task back-to-source.. ObtainSeeds(context.Context, *cdnsystemv1.SeedRequest, ...grpc.CallOption) (cdnsystemv1.Seeder_ObtainSeedsClient, error) // GetPieceTasks gets detail information of task. GetPieceTasks(context.Context, *commonv1.PieceTaskRequest, ...grpc.CallOption) (*commonv1.PiecePacket, error) // SyncPieceTasks syncs detail information of task. SyncPieceTasks(context.Context, *commonv1.PieceTaskRequest, ...grpc.CallOption) (cdnsystemv1.Seeder_SyncPieceTasksClient, error) }
Client is the interface for grpc client.
func GetClient ¶ added in v2.0.6
func GetClient(ctx context.Context, dynconfig config.DynconfigInterface, opts ...grpc.DialOption) (Client, error)
func GetClientByAddr ¶
Click to show internal directories.
Click to hide internal directories.