Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFlags ¶
func AddFlags(a *kingpin.Application, cfg *ProbeConfig)
func BasicHealthCheck ¶
func BasicHealthCheck(w http.ResponseWriter, r *http.Request)
Types ¶
type ProbeConfig ¶
type ProbeConfig struct { LogConfig promlog.Config `yaml:"log,omitempty"` HttpListenAddr string `yaml:"http_listen_addr,omitempty"` ConfigPath string `yaml:"config_path,omitempty"` }
func (*ProbeConfig) GetLogger ¶
func (cfg *ProbeConfig) GetLogger() log.Logger
func (*ProbeConfig) ParseConfigFile ¶
func (cfg *ProbeConfig) ParseConfigFile(config interface{}) error
func (*ProbeConfig) StartHttpServer ¶
func (cfg *ProbeConfig) StartHttpServer()
Click to show internal directories.
Click to hide internal directories.