Versions in this module Expand all Collapse all v0 v0.1.1 Sep 5, 2019 Changes in this version type Handler + func (h *Handler) InitHealthcheck() v0.1.0 Sep 5, 2019 Changes in this version + const After + const Before + const Init + const StatusNotServing + const StatusServing + func GracefulExit(handler *Handler, wg *sync.WaitGroup) + type Handler struct + Healthcheck *Healthcheck + func NewHandler(l Log) *Handler + func (h *Handler) Add(label string, labelPos string, pos int, stop ServiceDescriptor) + func (h *Handler) GenerateSeq(label string, pos int) int + func (h *Handler) HealthcheckWithExistingConnections() + func (h *Handler) SetupHealthcheck(hc *Healthcheck) + func (h *Handler) Stop() error + type Healthcheck struct + func NewHC(config *HealthcheckConfig) *Healthcheck + func (h *Healthcheck) Add(name string, hcs HealthcheckDescriptor) + func (h *Healthcheck) Policy() *HealthcheckConfig + func (h *Healthcheck) Serve() + func (h *Healthcheck) Status() (int32, error) + type HealthcheckConfig struct + CheckInterval int + Interval int + RetryAmount int + func DefaultHealthcheckConfig() *HealthcheckConfig + type HealthcheckDescriptor interface + Ping func() error + type Log interface + Debugf func(format string, args ...interface{}) + Errorf func(format string, args ...interface{}) + Infof func(format string, args ...interface{}) + Warnf func(format string, args ...interface{}) + type Ping func() error + type ServiceDescriptor interface + Ping func() error + Stop func() error