portcheck

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: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.5.0

type Config struct {
	Host    string       `yaml:"host"`
	Ports   []int        `yaml:"ports"`
	Timeout web.Duration `yaml:"timeout"`
}

type PortCheck

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

func New

func New() *PortCheck

func (*PortCheck) Charts

func (pc *PortCheck) Charts() *module.Charts

func (*PortCheck) Check

func (pc *PortCheck) Check() bool

func (*PortCheck) Cleanup

func (pc *PortCheck) Cleanup()

func (*PortCheck) Collect

func (pc *PortCheck) Collect() map[string]int64

func (*PortCheck) Init

func (pc *PortCheck) Init() bool

Jump to

Keyboard shortcuts

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