Documentation ¶
Index ¶
- type Probe
- func (p *Probe) APIGet(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (p *Probe) APIPut(w http.ResponseWriter, r *http.Request, params httprouter.Params)
- func (p *Probe) AddRoutes(r *httprouter.Router)
- func (p *Probe) BindConfig(prefix string, v *viper.Viper, fs *pflag.FlagSet)
- func (p *Probe) Handle(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (p *Probe) SetConfig(c ProbeConfig)
- type ProbeConfig
- type ProbeHistory
- type ProbeStatus
- type ProbeStatusHistory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
type Probe struct {
// contains filtered or unexported fields
}
func (*Probe) APIGet ¶
func (p *Probe) APIGet(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*Probe) APIPut ¶
func (p *Probe) APIPut(w http.ResponseWriter, r *http.Request, params httprouter.Params)
func (*Probe) AddRoutes ¶
func (p *Probe) AddRoutes(r *httprouter.Router)
func (*Probe) BindConfig ¶
func (*Probe) Handle ¶
func (p *Probe) Handle(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*Probe) SetConfig ¶
func (p *Probe) SetConfig(c ProbeConfig)
type ProbeConfig ¶
type ProbeConfig struct { // If failNext > 0, then fail next probe and decrement. If failNext < 0, then // fail forever. FailNext int `json:"failNext" mapstructure:"fail-next"` }
ProbeConfig is used to configure how the probe will respond
type ProbeStatus ¶
type ProbeStatus struct { ProbePath string `json:"probePath"` FailNext int `json:"failNext"` History []ProbeStatusHistory `json:"history"` }
ProbeStatus is returned from a GET to this API endpoing
Click to show internal directories.
Click to hide internal directories.