probe

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Initiators map[string]ProbeInitiator

Functions

This section is empty.

Types

type CommandProbe

type CommandProbe interface {
	GetName() string
	GetCommand() string
	GetArgs() []string
	Parser(string) (*result.Result, error)
}

type CommandProbeRunner

type CommandProbeRunner struct {
	Probe CommandProbe
	// contains filtered or unexported fields
}

func (*CommandProbeRunner) Run

func (runner *CommandProbeRunner) Run()

type DNSProbe

type DNSProbe struct {
	Name      string
	Interval  uint64
	Host      string
	Query     string
	QueryType string
}

func (*DNSProbe) GetName

func (f *DNSProbe) GetName() string

func (*DNSProbe) Test

func (f *DNSProbe) Test(ctx context.Context, resultChannel chan *result.Result) error

type Destination

type Destination interface {
}

type Fping

type Fping struct {
	Name     string
	Command  string
	Interval uint64
	Host     string
	// contains filtered or unexported fields
}

func (*Fping) GetArgs

func (f *Fping) GetArgs() []string

func (*Fping) GetCommand

func (f *Fping) GetCommand() string

func (*Fping) GetName

func (f *Fping) GetName() string

func (*Fping) Parser

func (f *Fping) Parser(line string) (r *result.Result, err error)

type FunctionProbe

type FunctionProbe interface {
	GetName() string
	Test(ctx context.Context, resultChannel chan *result.Result) error
}

type FunctionProbeRunner

type FunctionProbeRunner struct {
	Probe FunctionProbe
	// contains filtered or unexported fields
}

func (*FunctionProbeRunner) Run

func (runner *FunctionProbeRunner) Run()

type ProbeFunction

type ProbeFunction func(host string, interval uint64) ProbeRunner

type ProbeInitiator

type ProbeInitiator func(name string, config map[string]interface{}) ProbeFunction

type ProbeRunner

type ProbeRunner interface {
	Run()
}

Jump to

Keyboard shortcuts

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