Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CNS ¶
type CNS struct {
pb.UnimplementedCNSServer
Logger *zap.Logger
State *restserver.HTTPRestService
}
CNSService defines the CNS gRPC service.
func (*CNS) GetNodeInfo ¶
func (s *CNS) GetNodeInfo(_ context.Context, req *pb.NodeInfoRequest) (*pb.NodeInfoResponse, error)
func (*CNS) SetOrchestratorInfo ¶
func (s *CNS) SetOrchestratorInfo(_ context.Context, req *pb.SetOrchestratorInfoRequest) (*pb.SetOrchestratorInfoResponse, error)
type Server ¶
type Server struct {
Settings ServerSettings
CnsService pb.CNSServer
Logger *zap.Logger
}
Server struct to hold the gRPC server settings and the CNS service.
type ServerSettings ¶
GrpcServerSettings holds the gRPC server settings.
Click to show internal directories.
Click to hide internal directories.