rpcserver

package
v2.0.3-beta.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(database *database.Database, cache *cache.Cache, searcher searcher.Searcher, opts ...grpc.ServerOption) *grpc.Server

New returns a new manager server from the given options.

Types

type Server

type Server struct {

	// Manager grpc interface.
	manager.UnimplementedManagerServer
	// contains filtered or unexported fields
}

Server is grpc server.

func (*Server) GetScheduler

func (s *Server) GetScheduler(ctx context.Context, req *manager.GetSchedulerRequest) (*manager.Scheduler, error)

Get Scheduler and Scheduler cluster configuration.

func (*Server) GetSeedPeer added in v2.0.3

func (s *Server) GetSeedPeer(ctx context.Context, req *manager.GetSeedPeerRequest) (*manager.SeedPeer, error)

Get SeedPeer and SeedPeer cluster configuration.

func (*Server) KeepAlive

func (s *Server) KeepAlive(stream manager.Manager_KeepAliveServer) error

KeepAlive with manager.

func (*Server) ListSchedulers

List acitve schedulers configuration.

func (*Server) UpdateScheduler

func (s *Server) UpdateScheduler(ctx context.Context, req *manager.UpdateSchedulerRequest) (*manager.Scheduler, error)

Update scheduler configuration.

func (*Server) UpdateSeedPeer added in v2.0.3

func (s *Server) UpdateSeedPeer(ctx context.Context, req *manager.UpdateSeedPeerRequest) (*manager.SeedPeer, error)

Update SeedPeer configuration.

Jump to

Keyboard shortcuts

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