Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthPair ¶
type BasicAuthPair struct { Username string `mapstructure:"user"` Password string `mapstructure:"pass"` }
BasicAuthPair pair of username and password
type Configuration ¶
type Configuration struct { Addr string `mapstructure:"addr"` Timeout uint `mapstructure:"timeout"` Auth BasicAuthPair `mapstructure:"auth"` Storage *Storage `mapstructure:"storage"` }
Configuration app configuration
func NewConfiguration ¶
func NewConfiguration(configFilePath string) (*Configuration, error)
NewConfiguration reads configuration from file and environment variables
func (*Configuration) PrintConfiguration ¶
func (c *Configuration) PrintConfiguration()
PrintConfiguration prints configuration to stdout
Click to show internal directories.
Click to hide internal directories.