pinger

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPingDevice

func BuildPingDevice(
	ctx context.Context,
	cfg *config.Pinger,
) func(device.Device) (PerformancePingResponseEvent, error)

func PerformancePingerFilter

func PerformancePingerFilter(cfg *config.Pinger) device.DeviceFilter

Types

type PerfPingDevicesEvent

type PerfPingDevicesEvent struct{}

type PerformancePingResponseEvent

type PerformancePingResponseEvent struct {
	Device   device.Device
	Stats    nettools.Icmp4EchoResponseStatistics
	Start    time.Time
	Duration time.Duration
}

func (PerformancePingResponseEvent) Points

type TimeseriesAvgResponse

type TimeseriesAvgResponse TsPointBase

func (TimeseriesAvgResponse) GetName

func (tar TimeseriesAvgResponse) GetName() string

func (TimeseriesAvgResponse) GetTime

func (tar TimeseriesAvgResponse) GetTime() time.Time

func (TimeseriesAvgResponse) GetValue

func (tar TimeseriesAvgResponse) GetValue() float64

func (TimeseriesAvgResponse) Hydrate

type TimeseriesMaxResponse

type TimeseriesMaxResponse TsPointBase

func (TimeseriesMaxResponse) GetName

func (tmr TimeseriesMaxResponse) GetName() string

func (TimeseriesMaxResponse) GetTime

func (tmr TimeseriesMaxResponse) GetTime() time.Time

func (TimeseriesMaxResponse) GetValue

func (tmr TimeseriesMaxResponse) GetValue() float64

func (TimeseriesMaxResponse) Hydrate

type TimeseriesPacketLoss

type TimeseriesPacketLoss TsPointBase

func (TimeseriesPacketLoss) GetName

func (tpl TimeseriesPacketLoss) GetName() string

func (TimeseriesPacketLoss) GetTime

func (tpl TimeseriesPacketLoss) GetTime() time.Time

func (TimeseriesPacketLoss) GetValue

func (tpl TimeseriesPacketLoss) GetValue() float64

func (TimeseriesPacketLoss) Hydrate

func (tpl TimeseriesPacketLoss) Hydrate(t int, v float64) TimeseriesPoint

type TimeseriesPoint

type TimeseriesPoint interface {
	GetName() string
	GetValue() float64
	GetTime() time.Time
	Hydrate(int, float64) TimeseriesPoint
}

type TsPointBase

type TsPointBase struct {
	Time  time.Time
	Value float64
}

Jump to

Keyboard shortcuts

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