Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeService ¶
func InitializeService() error
InitializeService runs for the lifespan of the server instance
Types ¶
type GrpcHandler ¶
GrpcHandler keeps the gRPC Server reference
func (*GrpcHandler) Load ¶
func (g *GrpcHandler) Load(_ context.Context, _ *proto.EmptyRequest) (*proto.LoadReply, error)
Load returns the CPU and memory load
func (*GrpcHandler) Shutdown ¶
func (g *GrpcHandler) Shutdown(ctx context.Context, _ *proto.EmptyRequest) (*proto.EmptyReply, error)
Shutdown stops the service process
func (*GrpcHandler) Startup ¶
func (g *GrpcHandler) Startup(_ context.Context, _ *proto.EmptyRequest) (*proto.EmptyReply, error)
Startup is a no-op to start the service
type SocketHandler ¶
type SocketHandler struct {
// contains filtered or unexported fields
}
SocketHandler has the http Server
Click to show internal directories.
Click to hide internal directories.