Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Secret string `yaml:"Secret"` 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
Click to show internal directories.
Click to hide internal directories.