Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Config store the active merge configuration Config = &Options{} // CLI store the configuration fetched from the console line CLI = &Options{} // File store the configuration fetched from an optional file File = &Options{} // Filepath is the path of the loaded configuration file Filepath string )
Functions ¶
func Apply ¶
func Apply() (err error)
Apply validate configuration and initialize needed package with values from configuration
func ApplyLoggingOptions ¶
func ApplyLoggingOptions(lc *logOptions) (err error)
ApplyLoggingOptions apply configuration on log package
Types ¶
type Options ¶
type Options struct { Global globalOptions `json:"global"` Run runOptions `json:"run"` }
Options list all the available configurations
type TLSOptions ¶
type TLSOptions struct { Key string `json:"key" validate:"file=omitempty+readable"` KeyPassword string `json:"key_password"` ClientsCACert string `json:"clients_ca_cert" validate:"file=readable"` Cert string `json:"cert" validate:"string=nonempty"` }
TLSOptions store required TLS options
Click to show internal directories.
Click to hide internal directories.