portcheck

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: GPL-3.0 Imports: 6 Imported by: 1

README

portcheck

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Charts

type Charts = modules.Charts

Charts is an alias for modules.Charts

type Dims

type Dims = modules.Dims

Dims is an alias for modules.Dims

type PortCheck

type PortCheck struct {
	modules.Base

	Host        string       `yaml:"host" validate:"required"`
	Ports       []int        `yaml:"ports" validate:"required,gte=1"`
	Timeout     web.Duration `yaml:"timeout"`
	UpdateEvery int          `yaml:"update_every"`
	// contains filtered or unexported fields
}

PortCheck portcheck module

func New

func New() *PortCheck

New creates PortCheck with default values

func (PortCheck) Charts

func (tc PortCheck) Charts() *Charts

Charts creates charts

func (PortCheck) Check

func (PortCheck) Check() bool

Check makes check

func (*PortCheck) Cleanup

func (tc *PortCheck) Cleanup()

Cleanup makes cleanup

func (*PortCheck) Collect

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

Collect collects metrics

func (*PortCheck) Init

func (tc *PortCheck) Init() bool

Init makes initialization

Jump to

Keyboard shortcuts

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