Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v2.0.1
func New(seederServer SeederServer, opts ...grpc.ServerOption) *grpc.Server
func StatSeedFinish ¶
func StatSeedStart ¶
func StatSeedStart(taskID, url string)
Types ¶
type SeederServer ¶
type SeederServer interface { // Generate seeds and return to scheduler ObtainSeeds(context.Context, *cdnsystem.SeedRequest, chan<- *cdnsystem.PieceSeed) error // Get piece tasks from cdn GetPieceTasks(context.Context, *base.PieceTaskRequest) (*base.PiecePacket, error) }
SeederServer refer to cdnsystem.SeederServer
Click to show internal directories.
Click to hide internal directories.