Documentation ¶
Overview ¶
Package healthcheck implements health check service for crypki.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { proto.UnimplementedHealthServer SigningService *api.SigningService KeyID string // InRotation returns true if the instance is intended to serve traffic, false otherwise. InRotation func() bool }
Service implements proto.HealthCheckServer
func (*Service) Check ¶
func (s *Service) Check(ctx context.Context, r *proto.HealthCheckRequest) (*proto.HealthCheckResponse, error)
Check implements the health check service for crypki. Based on InRotation() and GetUserSSHCertificateSigningKey() api, it will report appropriate status.
Click to show internal directories.
Click to hide internal directories.