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 ¶
Click to show internal directories.
Click to hide internal directories.