Documentation
¶
Index ¶
- Constants
- func Start(ctx context.Context, cfg *commoncfg.BaseConfig, probes ...ProbeOption) error
- type ProbeOption
- func WithCustom(name string, handler func(http.ResponseWriter, *http.Request)) ProbeOption
- func WithHealthZ(handler func(http.ResponseWriter, *http.Request)) ProbeOption
- func WithLiveness(handler func(http.ResponseWriter, *http.Request)) ProbeOption
- func WithReadiness(handler func(http.ResponseWriter, *http.Request)) ProbeOption
- func WithStartup(handler func(http.ResponseWriter, *http.Request)) ProbeOption
Constants ¶
View Source
const ( DefReadHeaderTimeout = 2 * time.Second DefShutdownTimeout = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func Start ¶
func Start(ctx context.Context, cfg *commoncfg.BaseConfig, probes ...ProbeOption) error
StartStatusServer starts the status server using the given probesConfig.
Types ¶
type ProbeOption ¶
type ProbeOption func(*probesConfig)
ProbeOption configures a [Handler].
func WithCustom ¶
func WithCustom(name string, handler func(http.ResponseWriter, *http.Request)) ProbeOption
func WithHealthZ ¶
func WithHealthZ(handler func(http.ResponseWriter, *http.Request)) ProbeOption
func WithLiveness ¶
func WithLiveness(handler func(http.ResponseWriter, *http.Request)) ProbeOption
func WithReadiness ¶
func WithReadiness(handler func(http.ResponseWriter, *http.Request)) ProbeOption
func WithStartup ¶
func WithStartup(handler func(http.ResponseWriter, *http.Request)) ProbeOption
Click to show internal directories.
Click to hide internal directories.