config

package
v0.0.0-...-5aa43d2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	Address string `yaml:"address"`
}

type Destination

type Destination struct {
	Address string   `yaml:"address"`
	Probes  []string `yaml:"probes"`
}

type ProbeConfig

type ProbeConfig struct {
	Hostname     string        `yaml:"hostname"`
	Destinations []Destination `yaml:"destinations"`
	Collector    Collector     `yaml:"collector"`
	Probes       map[string]map[string]interface{}
}

func ParseFile

func ParseFile(path string) (config *ProbeConfig, err error)

Jump to

Keyboard shortcuts

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