config

package
v0.0.0-...-9c91439 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(str string, list []string) bool

Types

type Config

type Config struct {
	Fields map[string]string `config:"fields"`
	Inputs []Input           `config:"inputs"`
}
var DefaultConfig Config

type Input

type Input struct {
	Disabled  bool          `config:"disabled"`
	Name      string        `config:"name"`
	Period    time.Duration `config:"period"`
	Threshold time.Duration `config:"threshold"`
	Paths     []string      `config:"paths"`
	Whitelist []string      `config:"whitelist"`
	Blacklist []string      `config:"blacklist"`
	Max_depth int           `config:"max_depth"`
	Attribute string        `config:"attribute"`
	Heartbeat bool          `config:"heartbeat"`
}

func Validate

func Validate(src []Input) ([]Input, error)

Jump to

Keyboard shortcuts

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