Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Debug bool `toml:"debug"` DB string `toml:"database"` AlertCheck Duration `toml:"alert_check"` Output map[string]interface{} `toml:"output"` Input map[string]interface{} `toml:"input"` }
Struct of the configuration e.g. under dev.sum7.eu/sum7/logmania/logmania_example.conf
type Duration ¶
Duration is a TOML datatype A duration string is a possibly signed sequence of decimal numbers and a unit suffix, such as "300s", "1.5h" or "5d". Valid time units are "s", "m", "h", "d", "w".
func (*Duration) UnmarshalTOML ¶
UnmarshalTOML parses a duration string.
Click to show internal directories.
Click to hide internal directories.