Documentation
¶
Overview ¶
Package config is a parser for tower config files
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckConfig ¶
type CheckConfig struct {
Type string `yaml:"type"`
// TCP / TLS
IP string `yaml:"ip"`
Port int `yaml:"port"`
// HTTPS
Host string `yaml:"host"`
WarnIfExpiringWithin time.Duration `yaml:"warn_if_expiring"`
InsecureSkipVerify bool `yaml:"insecure_skip_verify"`
// DNS
Addr string `yaml:"addr"`
// Ping
Count int `yaml:"count"`
// HTTP / Trace
URL string `yaml:"url"`
Method string `yaml:"method"`
// Common
Timeout time.Duration `yaml:"timeout"`
}
CheckConfig is a single check entry in a tower config file. The Type field determines which libtower check to run.
type Config ¶
type Config struct {
Checks []CheckConfig `yaml:"checks"`
}
Config is the root tower config file.
Click to show internal directories.
Click to hide internal directories.