client

package
v2.0.6-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

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(dynconfig config.DynconfigInterface, opts ...grpc.DialOption) (Client, error)

func GetClientByAddr

func GetClientByAddr(netAddr dfnet.NetAddr, opts ...grpc.DialOption) (Client, error)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL