http

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPChecker

func NewHTTPChecker(conf interface{}, pluginConf interface{}) (plugins.Checker, error)

NewHTTPChecker create a HTTP checker

Types

type HTTPChecker

type HTTPChecker struct {
	// contains filtered or unexported fields
}

HTTPChecker is a plugin to check HTTP service

func (HTTPChecker) Name

func (c HTTPChecker) Name() string

Name returns the name of the checker

func (HTTPChecker) Periodicity added in v1.3.0

func (c HTTPChecker) Periodicity() *time.Duration

Periodicity returns the delay between two checks

func (*HTTPChecker) Run

Run is performing the checker protocol

func (HTTPChecker) ServiceName

func (c HTTPChecker) ServiceName() string

ServiceName returns the name of the NSCA service associated to the checker

Jump to

Keyboard shortcuts

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