Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { Loglevel string `yaml:"log"` Server server.Parameters `yaml:"server"` Auth auth.Parameters `yaml:"auth"` AppEndpoint app_endpoint.Parameters `yaml:"app_endpoint"` MowerEndpoint mower_endpoint.Parameters `yaml:"mower_endpoint"` Monitoring monitoring.Parameters `yaml:"monitoring"` }
func DefaultConfig ¶
func DefaultConfig() (*Configuration, error)
func Get ¶
func Get(osArgs []string) (*Configuration, error)
func ReadConfig ¶
func ReadConfig(filename string) (*Configuration, error)
func (*Configuration) LogLevel ¶
func (c *Configuration) LogLevel() lager.LogLevel
func (*Configuration) Validate ¶
func (c *Configuration) Validate() error
Click to show internal directories.
Click to hide internal directories.