settings struct

This commit is contained in:
alessio 2016-11-14 08:59:08 +01:00
parent 90b8d07bae
commit 6995b264d8
1 changed files with 8 additions and 7 deletions

View File

@ -13,19 +13,20 @@ type Settings struct {
} }
type Config struct { type Config struct {
Flimit uint64 `yaml:"flimit,omitempty"` Flimit uint64 `yaml:"flimit"`
} }
type Server struct { type Server struct {
Enabled bool `yaml:"enable,omitempty"` Enabled bool `yaml:"enable"`
Open bool `yaml:"open,omitempty"` Open bool `yaml:"open"`
Host string `yaml:"host,omitempty"` Host string `yaml:"host"`
Port int `yaml:"port,omitempty"` Port int `yaml:"port"`
} }
type Resources struct { type Resources struct {
Config string `yaml:"config,omitempty"` Config string `yaml:"-"`
Output string `yaml:"output,omitempty"` Output string `yaml:"output"`
Log string `yaml:"log"`
} }
// Flimit defines the max number of watched files // Flimit defines the max number of watched files