ping

package
v0.58.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: GPL-3.0 Imports: 11 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 {
	UpdateEvery int          `yaml:"update_every"`
	Hosts       []string     `yaml:"hosts"`
	Network     string       `yaml:"network"`
	Privileged  bool         `yaml:"privileged"`
	SendPackets int          `yaml:"packets"`
	Interval    web.Duration `yaml:"interval"`
	Interface   string       `yaml:"interface"`
}

type Ping

type Ping struct {
	module.Base
	Config `yaml:",inline"`
	// contains filtered or unexported fields
}

func New

func New() *Ping

func (*Ping) Charts

func (p *Ping) Charts() *module.Charts

func (*Ping) Check

func (p *Ping) Check() bool

func (*Ping) Cleanup

func (p *Ping) Cleanup()

func (*Ping) Collect

func (p *Ping) Collect() map[string]int64

func (*Ping) Init

func (p *Ping) Init() bool

Jump to

Keyboard shortcuts

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