Documentation
¶
Index ¶
- func New(cfg *Config) *http.Server
- func NewHealthz(cfg *Config) *http.Server
- type CheckFunc
- type Config
- type HealthzHandler
- func (s *HealthzHandler) AddLivenessCheck(name string, check CheckFunc)
- func (s *HealthzHandler) AddReadinessCheck(name string, check CheckFunc)
- func (s *HealthzHandler) LiveEndpoint(w http.ResponseWriter, r *http.Request)
- func (s *HealthzHandler) ReadyEndpoint(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHealthz ¶
Types ¶
type Config ¶
type Config struct { Host string HealthzPort uint32 Port uint32 TLSConfig *tls.Config Timeout time.Duration KeepAlive time.Duration IdleConnTimeout time.Duration TLSHandshakeTimeout time.Duration ExpectContinueTimeout time.Duration MaxIdleConnsPerHost int }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type HealthzHandler ¶
func NewHealthzHandler ¶
func NewHealthzHandler() *HealthzHandler
func (*HealthzHandler) AddLivenessCheck ¶
func (s *HealthzHandler) AddLivenessCheck(name string, check CheckFunc)
func (*HealthzHandler) AddReadinessCheck ¶
func (s *HealthzHandler) AddReadinessCheck(name string, check CheckFunc)
func (*HealthzHandler) LiveEndpoint ¶
func (s *HealthzHandler) LiveEndpoint(w http.ResponseWriter, r *http.Request)
func (*HealthzHandler) ReadyEndpoint ¶
func (s *HealthzHandler) ReadyEndpoint(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.