Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler defines the http router implementation for health endpoints.
func NewHandler ¶
NewHandler creates a new Handler for health endpoints.
func (*Handler) Live ¶
Live performs a live check.
@Summary Live healthcheck @Description Performs a live check @Tags health @ID health-live @Produce json @Success 200 {object} ServiceHealth "OK" @Failure 503 {object} ServiceHealth "Service Unavailable" @Router /health/live [get]
type ServiceHealth ¶
type ServiceHealth struct { ServiceStatus ServiceHealthStatus `json:"status"` Description ServiceHealthDescription `json:"description"` CompletedAt time.Time `json:"completed_at"` } // @name ServiceHealth
ServiceHealth defines the health of the service.
type ServiceHealthDescription ¶
type ServiceHealthDescription string // @name serviceHealthDescription
ServiceHealthDescription describes the state of the service status.
type ServiceHealthStatus ¶
type ServiceHealthStatus string // @name serviceHealthStatus
ServiceHealthStatus defines the status of the service.
Click to show internal directories.
Click to hide internal directories.