server

package
v0.0.0-...-fd89602 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	pb.UnimplementedCompatibilityServiceServer
	// contains filtered or unexported fields
}

Server is used to implement your Service.

func NewServer

func NewServer(serverName string) *Server

NewServer creates a new "scheduler" server The scheduler server registers clusters and then accepts jobs

func (*Server) CheckCompatibility

func (s *Server) CheckCompatibility(_ context.Context, in *pb.CompatRequest) (*pb.Response, error)

Register a new cluster with the server

func (*Server) GetName

func (s *Server) GetName() string

func (*Server) GetVersion

func (s *Server) GetVersion() string

func (*Server) Start

func (s *Server) Start(ctx context.Context, host string) error

Start the server

func (*Server) Stop

func (s *Server) Stop()

func (*Server) String

func (s *Server) String() string

Jump to

Keyboard shortcuts

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