Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPIDPath ¶
func DefaultPIDPath() string
func FormatDuration ¶ added in v0.3.2
FormatDuration formats a duration in a human-readable short form.
Types ¶
type Config ¶
type Config struct {
Targets TargetsConfig `toml:"targets"`
Intervals IntervalsConfig `toml:"intervals"`
Storage StorageConfig `toml:"storage"`
Outage OutageConfig `toml:"outage"`
TUI TUIConfig `toml:"tui"`
Web WebConfig `toml:"web"`
Verbose bool `toml:"-"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
type Duration ¶
Duration wraps time.Duration for TOML parsing.
func (Duration) MarshalText ¶
func (*Duration) UnmarshalText ¶
type IntervalsConfig ¶
type OutageConfig ¶
type OutageConfig struct {
ConsecutiveFailures int `toml:"consecutive_failures"`
}
type StorageConfig ¶
type TargetsConfig ¶
Click to show internal directories.
Click to hide internal directories.