Documentation ¶
Index ¶
- type Checks
- type Config
- func (c Config) Empty() bool
- func (c Config) For(name string) checks.Runtime
- func (c Config) HasCheck(name string) bool
- func (c Config) HasDNSCheck() bool
- func (c Config) HasHealthCheck() bool
- func (c Config) HasLatencyCheck() bool
- func (c Config) HasTracerouteCheck() bool
- func (c Config) Iter() []checks.Runtime
- func (c Config) Validate() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checks ¶
type Checks struct {
// contains filtered or unexported fields
}
Checks holds all the checks.
type Config ¶
type Config struct { Health *health.Config `yaml:"health" json:"health"` Latency *latency.Config `yaml:"latency" json:"latency"` Dns *dns.Config `yaml:"dns" json:"dns"` Traceroute *traceroute.Config `yaml:"traceroute" json:"traceroute"` }
Config holds the runtime configuration for the various checks the sparrow supports
func (Config) HasCheck ¶
HasCheck returns true if the check has a check with the given name configured
func (Config) HasDNSCheck ¶
HasDNSCheck returns true if the check has a dns check configured
func (Config) HasHealthCheck ¶
HasHealthCheck returns true if the check has a health check configured
func (Config) HasLatencyCheck ¶
HasLatencyCheck returns true if the check has a latency check configured
func (Config) HasTracerouteCheck ¶ added in v0.3.2
HasTracerouteCheck returns true if the check has a traceroute check configured
Click to show internal directories.
Click to hide internal directories.