Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCServer ¶
func NewGRPCServer ¶
func NewGRPCServer(ctx context.Context, args NewGRPCServerArgs) *GRPCServer
Creates and returns a gRPC server.
func (*GRPCServer) GracefulShutdown ¶
func (server *GRPCServer) GracefulShutdown()
Stops the gRPC server from accepting new connections and RPC requests. Then, waits for the RPCs which are currently being processed, to finish.
type HealthcheckService ¶
type HealthcheckService struct {
// contains filtered or unexported fields
}
func (*HealthcheckService) Check ¶
func (h *HealthcheckService) Check(ctx context.Context, request *grpc_health_v1.HealthCheckRequest, ) (*grpc_health_v1.HealthCheckResponse, error)
func (*HealthcheckService) Watch ¶
func (h *HealthcheckService) Watch( request *grpc_health_v1.HealthCheckRequest, responseStream grpc.ServerStreamingServer[grpc_health_v1.HealthCheckResponse], ) error
type NewGRPCServerArgs ¶
type NewGRPCServerArgs struct {
DevModeEnabled bool
Healthcheckables []healthcheck.Healthcheckable
ToGRPCErrorStatusCodeFn ToGRPCErrorStatusCodeFn
}
type ToGRPCErrorStatusCodeFn ¶
Click to show internal directories.
Click to hide internal directories.