Documentation ¶
Overview ¶
Package probers represent
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPProberConfig ¶
type HTTPProberConfig struct {
// contains filtered or unexported fields
}
HTTPProberConfig holds information abou the HTTP traces
type HTTPTrace ¶
type HTTPTrace struct {
ProberConfig
}
HTTPTrace struct holds information for httpTrace probes and implements Prober interface
func NewHTTPTrace ¶
func NewHTTPTrace(c ProberConfig) *HTTPTrace
NewHTTPTrace is the constructor function of httptrace struct
func (*HTTPTrace) Run ¶
func (h *HTTPTrace) Run()
Run is responsible for holding the logic or running the probing httpTrace measurements for an endpoint
type Prober ¶
type Prober interface { String() string Run() Stop() }
Prober interface dictates what function each Prober kind struct should implement
type ProberConfig ¶
type ProberConfig struct { HTTPProberConfig // contains filtered or unexported fields }
ProberConfig struct holds information about configuration each Prober needs
func NewProberConfig ¶
func NewProberConfig(w *sync.WaitGroup, endpoint string, retries int, tag string, interval time.Duration, isOneOff, reuseCon bool, skipTLS bool, promC *metrics.PrometheusClient) ProberConfig
NewProberConfig is the constructor function for each ProberConfig struct
type TCP ¶
type TCP struct {
ProberConfig
}
TCP struct holds information for Tcp probers and implements Prober interface
func (*TCP) Run ¶
func (t *TCP) Run()
Run is responsible for holding the logic of running the probing TCP measurements