server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGRPCPort       = 5000
	DefaultMonitoringPort = 9696
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionFunc

type OptionFunc func(s *Server)

func WithGrpcPort

func WithGrpcPort(p int) OptionFunc

func WithLogger

func WithLogger(l *zap.Logger) OptionFunc

func WithMonitoringPort

func WithMonitoringPort(p int) OptionFunc

type Server

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

func NewServer

func NewServer(ctrl *controller.Controller, s *scheduler.Scheduler, opts ...OptionFunc) (*Server, error)

func (*Server) Get

func (s *Server) Get(ctx context.Context, in *pb.GetMessage) (*pb.GetResponse, error)

func (*Server) StartBlocking

func (s *Server) StartBlocking() error

Jump to

Keyboard shortcuts

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