probers

package
v0.4.3 Latest Latest
Warning

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

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

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

func (*HTTPTrace) Stop

func (h *HTTPTrace) Stop()

Stop sends a message to httpTrace's exit channel when it's time to stop

func (*HTTPTrace) String

func (h *HTTPTrace) String() string

String is used when we want to print info about httpTrace prober

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 NewTCP

func NewTCP(c ProberConfig) *TCP

NewTCP is the constructor for each Tcp struct

func (*TCP) Run

func (t *TCP) Run()

Run is responsible for holding the logic of running the probing TCP measurements

func (*TCP) Stop

func (t *TCP) Stop()

Stop sends a message to TCP's exit channel when it's time to stop

func (*TCP) String

func (t *TCP) String() string

String is used when we want to print info about Tcp prober

Jump to

Keyboard shortcuts

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