config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filename

func Filename(osArgs []string) string

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

Jump to

Keyboard shortcuts

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