common

package
v0.0.0-...-c72af41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL