14 lines
		
	
	
		
			509 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			509 B
		
	
	
	
		
			Go
		
	
	
	
package lib
 | 
						|
 | 
						|
// Struct of the configuration
 | 
						|
// e.g. under dev.sum7.eu/genofire/logmania/logmania_example.conf
 | 
						|
type Config struct {
 | 
						|
	Debug       bool                   `toml:"debug"`
 | 
						|
	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"`
 | 
						|
}
 |