Documentation ¶
Index ¶
- type Server
- func (s *Server) LeaveTask(ctx context.Context, req *scheduler.PeerTarget) (err error)
- func (s *Server) RegisterPeerTask(ctx context.Context, req *scheduler.PeerTaskRequest) (*scheduler.RegisterResult, error)
- func (s *Server) ReportPeerResult(ctx context.Context, req *scheduler.PeerResult) (err error)
- func (s *Server) ReportPieceResult(stream scheduler.Scheduler_ReportPieceResultServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶ added in v2.0.2
func New ¶ added in v2.0.1
func New(service service.Service, opts ...grpc.ServerOption) *Server
New returns a new transparent scheduler server from the given options
func (*Server) RegisterPeerTask ¶ added in v2.0.2
func (s *Server) RegisterPeerTask(ctx context.Context, req *scheduler.PeerTaskRequest) (*scheduler.RegisterResult, error)
func (*Server) ReportPeerResult ¶ added in v2.0.2
func (*Server) ReportPieceResult ¶ added in v2.0.2
func (s *Server) ReportPieceResult(stream scheduler.Scheduler_ReportPieceResultServer) error
Click to show internal directories.
Click to hide internal directories.