Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HealthAccumulator ¶
type HealthAccumulator struct {
// contains filtered or unexported fields
}
func NewHealthAccumulator ¶
func NewHealthAccumulator(clock clock.Clock) *HealthAccumulator
func (*HealthAccumulator) Register ¶
func (h *HealthAccumulator) Register(component string, check HealthCheck)
func (*HealthAccumulator) Run ¶
func (h *HealthAccumulator) Run(appCtx context.Context)
type HealthActuator ¶
type HealthActuator struct {
// contains filtered or unexported fields
}
var HealthAggregator *HealthActuator
func (*HealthActuator) ServeHTTP ¶
func (h *HealthActuator) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*HealthActuator) Set ¶
func (h *HealthActuator) Set(check string, status Status, message string)
func (*HealthActuator) Status ¶
func (h *HealthActuator) Status() Status
type HealthStatus ¶
type HealthStatus struct { Status Status `json:"status"` Components map[string]StatusComponent `json:"components"` }
type InfoHandler ¶
type InfoHandler struct {
// contains filtered or unexported fields
}
func NewInfoHandler ¶
func NewInfoHandler() *InfoHandler
func (*InfoHandler) ServeHTTP ¶
func (v *InfoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type StatusComponent ¶
Click to show internal directories.
Click to hide internal directories.