dns

package
v0.0.0-...-16cb735 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

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

func NewCheck

func NewCheck(options map[string]interface{}) (*Check, error)

NewCheck creates a new check for a service

func (*Check) Config

func (check *Check) Config() core.MonitorConfiguration

func (*Check) Description

func (check *Check) Description() string

func (*Check) Name

func (check *Check) Name() string

func (*Check) Perform

func (check *Check) Perform() (core.Status, error)

func (*Check) Version

func (check *Check) Version() string

func (*Check) Watch

func (check *Check) Watch(update chan<- *core.ServiceStatus, stop <-chan bool, wg *sync.WaitGroup) error

type MonitorConfiguration

type MonitorConfiguration struct {
	// Hostname of the service
	Hostname string `mapstructure:"hostname"`
	// Interval is the interval to use when watching the target, such as "1s"
	Interval time.Duration `mapstructure:"interval"`
}

func ParseConfiguration

func ParseConfiguration(options map[string]interface{}) (*MonitorConfiguration, error)

func (*MonitorConfiguration) Validate

func (config *MonitorConfiguration) Validate() []error

Jump to

Keyboard shortcuts

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