lib

package
v0.0.0-...-29fb1c0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 3 Imported by: 1

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

type Duration struct {
	time.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

func (d *Duration) UnmarshalTOML(dataInterface interface{}) error

UnmarshalTOML parses a duration string.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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