net

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectivityCheck

type ConnectivityCheck struct {
	Severity string `toml:"severity"`
}

type Instance

type Instance struct {
	config.InternalConfig
	Partial string `toml:"partial"`

	Targets      []string          `toml:"targets"`
	Concurrency  int               `toml:"concurrency"`
	Timeout      config.Duration   `toml:"timeout"`
	ReadTimeout  config.Duration   `toml:"read_timeout"`
	Protocol     string            `toml:"protocol"`
	Send         string            `toml:"send"`
	Expect       string            `toml:"expect"`
	Connectivity ConnectivityCheck `toml:"connectivity"`
	ResponseTime ResponseTimeCheck `toml:"response_time"`
}

func (*Instance) Gather

func (ins *Instance) Gather(q *safe.Queue[*types.Event])

func (*Instance) Init

func (ins *Instance) Init() error

func (*Instance) TCPGather

func (ins *Instance) TCPGather(address string, labels map[string]string, q *safe.Queue[*types.Event])

func (*Instance) UDPGather

func (ins *Instance) UDPGather(address string, labels map[string]string, q *safe.Queue[*types.Event])

type NETPlugin

type NETPlugin struct {
	config.InternalConfig
	Partials  []Partial   `toml:"partials"`
	Instances []*Instance `toml:"instances"`
}

func (*NETPlugin) ApplyPartials

func (p *NETPlugin) ApplyPartials() error

func (*NETPlugin) GetInstances

func (p *NETPlugin) GetInstances() []plugins.Instance

type Partial

type Partial struct {
	ID           string            `toml:"id"`
	Concurrency  int               `toml:"concurrency"`
	Timeout      config.Duration   `toml:"timeout"`
	ReadTimeout  config.Duration   `toml:"read_timeout"`
	Protocol     string            `toml:"protocol"`
	Send         string            `toml:"send"`
	Expect       string            `toml:"expect"`
	Connectivity ConnectivityCheck `toml:"connectivity"`
	ResponseTime ResponseTimeCheck `toml:"response_time"`
}

type ResponseTimeCheck

type ResponseTimeCheck struct {
	WarnGe     config.Duration `toml:"warn_ge"`
	CriticalGe config.Duration `toml:"critical_ge"`
}

Jump to

Keyboard shortcuts

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