Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Server struct { ListenAddr string `default:""` Port int `default:"80"` ResponseHeaders map[string]string } Database struct { Dbname string `default:""` Connection string `default:""` } }
Configuration is stuff that can be configured externally per env variables or config file (config.yml).
func Get ¶
func Get() *Configuration
Get returns the configuration extracted from env variables or config file.
Click to show internal directories.
Click to hide internal directories.