Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReadinessHandler ¶ added in v1.1.1
func NewReadinessHandler(ready ReadinessProvider, logger log.Logger) func(w http.ResponseWriter, r *http.Request)
NewReadinessHandler returns an endpoint that returns a simple 200 to denote the web server is active
Types ¶
type AlwaysReady ¶ added in v1.1.1
type AlwaysReady struct{}
func (AlwaysReady) Ready ¶ added in v1.1.1
func (AlwaysReady) Ready() bool
type Config ¶
type Config struct { HTTPListenAddress string `yaml:"http_listen_address"` HTTPListenPort int `yaml:"http_listen_port"` ServerGracefulShutdownTimeout time.Duration `yaml:"graceful_shutdown_timeout"` ReadinessProvider ReadinessProvider `yaml:"-"` }
Config for the Internal Server
func (*Config) RegisterFlags ¶
RegisterFlags adds the flags required to config this to the given FlagSet
type ReadinessProvider ¶ added in v1.1.1
type ReadinessProvider interface {
Ready() bool
}
Click to show internal directories.
Click to hide internal directories.