server

package
v2.0.1-a-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchedulerServer

type SchedulerServer interface {
	// RegisterPeerTask register a peer to scheduler
	RegisterPeerTask(context.Context, *scheduler.PeerTaskRequest) (*scheduler.RegisterResult, error)
	// ReportPieceResult report piece result to scheduler
	ReportPieceResult(scheduler.Scheduler_ReportPieceResultServer) error
	// ReportPeerResult report peer download result to scheduler
	ReportPeerResult(context.Context, *scheduler.PeerResult) error
	// LeaveTask leave peer from scheduler
	LeaveTask(context.Context, *scheduler.PeerTarget) error
}

SchedulerServer scheduler.SchedulerServer

Jump to

Keyboard shortcuts

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