lua

package
v0.0.0-...-e721cab Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PingFrequency   time.Duration
	UpdateFrequency time.Duration
	Privileged      bool
	NumSeconds      uint
	Probes          []ping.Probe
	// contains filtered or unexported fields
}

type Engine

type Engine struct {
	Config Config
	// contains filtered or unexported fields
}

func New

func New(configFile string) (*Engine, error)

func (*Engine) Close

func (e *Engine) Close()

func (*Engine) OnQuit

func (e *Engine) OnQuit(gps map[string]ping.ProbeStats) error

func (*Engine) OnRecv

func (e *Engine) OnRecv(gps map[string]ping.ProbeStats, ps ping.ProbeStats) error

func (*Engine) OnUpdate

func (e *Engine) OnUpdate(gps map[string]ping.ProbeStats) error

func (*Engine) SetPinger

func (e *Engine) SetPinger(p *ping.Pinger)

Jump to

Keyboard shortcuts

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