logmania/lib/config.go

14 lines
509 B
Go
Raw Normal View History

2017-06-11 03:34:11 +02:00
package lib
2017-06-13 00:21:19 +02:00
// Struct of the configuration
// e.g. under dev.sum7.eu/genofire/logmania/logmania_example.conf
2017-06-11 03:34:11 +02:00
type Config struct {
2018-09-06 13:36:25 +02:00
Debug bool `toml:"debug"`
2018-09-05 01:53:23 +02:00
DB string `toml:"database"`
HTTPAddress string `toml:"http_address"`
Webroot string `toml:"webroot"`
AlertCheck Duration `toml:"alert_check"`
Output map[string]interface{} `toml:"output"`
Input map[string]interface{} `toml:"input"`
2017-06-16 10:33:35 +02:00
}