Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Applictaion ¶
type Config ¶
type Config struct { Server Server `mapstructure:"server"` MasterDatabase Database `mapstructure:"master_database"` Secrets Secrets `mapstructure:"secrets"` Applictaion Applictaion `mapstructure:"applictaion"` Logger Logger `mapstructure:"logger"` Migration Migration `mapstructure:"migration"` }
func LoadConfig ¶
LoadConfig reads configuration from file or environment variables.
type Database ¶
type Database struct { Type string `mapstructure:"type"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` Host string `mapstructure:"host"` Port int `mapstructure:"port"` DBname string `mapstructure:"dbname"` PoolSize int `mapstructure:"pool_size"` ConnectionTimeout int `mapstructure:"connection_timeout"` }
type Server ¶
type Server struct { Port int `mapstructure:"port"` Host string `mapstructure:"host"` ServerName string `mapstructure:"server_name"` RequestBodyLimit int `mapstructure:"request_body_limit"` Timeout int `mapstructure:"timeout"` AdminCors string `mapstructure:"admin_cors"` StoreCors string `mapstructure:"store_cors"` }
Click to show internal directories.
Click to hide internal directories.