Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Web WebConfiguration `yaml:"Web"` DB DBConfiguration `yaml:"DB"` }
Configuration holds all the configuration that applies to the shortener application.
func LoadGlobal ¶
func LoadGlobal(filename string) (*Configuration, error)
LoadGlobal loads the configuration from file and env variables.
type DBConfiguration ¶
type DBConfiguration struct { Driver string `yaml:"Driver" required:"true"` URL string `yaml:"URL" required:"true"` IDLength int `yaml:"IDLength" required:"true"` }
DBConfiguration holds information about database, database driver and connection params
type WebConfiguration ¶
type WebConfiguration struct { ListenAddr string `yaml:"ListenAddr` BaseURL string `yaml:"BaseURL"` Debug bool `yaml:"debug"` }
WebConfiguration keeps information for our WebService
Click to show internal directories.
Click to hide internal directories.