Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertHeaders ¶
ConvertHeaders takes a list of `key=value` headers and adds those trimmed to the specified header struct. It ignores any malformed entries.
Types ¶
type Configuration ¶
type Configuration struct { Log LogConfig `koanf:"log"` Symo SymoConfig `koanf:"symo"` BindAddr string `koanf:"bind-addr"` }
Configuration holds a strongly-typed tree of the configuration
func NewDefaultConfig ¶
func NewDefaultConfig() *Configuration
NewDefaultConfig retrieves the hardcoded configs with sane defaults
func ParseConfig ¶
func ParseConfig(version, commit, date string, fs *flag.FlagSet, args []string) *Configuration
ParseConfig overrides internal config defaults with up CLI flags, environment variables and ensures basic validation.
Click to show internal directories.
Click to hide internal directories.