rpcserver

package
v2.0.2-beta.5 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server added in v2.0.2

type Server struct {
	*grpc.Server
	// contains filtered or unexported fields
}

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) LeaveTask added in v2.0.2

func (s *Server) LeaveTask(ctx context.Context, req *scheduler.PeerTarget) (err error)

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 (s *Server) ReportPeerResult(ctx context.Context, req *scheduler.PeerResult) (err error)

func (*Server) ReportPieceResult added in v2.0.2

func (s *Server) ReportPieceResult(stream scheduler.Scheduler_ReportPieceResultServer) error

Jump to

Keyboard shortcuts

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