22 lines
552 B
Go
22 lines
552 B
Go
package config
|
|
|
|
type Config struct {
|
|
App AppConfig `mapstructure:"app"`
|
|
Postgres PostgresConfig `mapstructure:"postgres"`
|
|
}
|
|
|
|
type AppConfig struct {
|
|
Name string `mapstructure:"name"`
|
|
Port int `mapstructure:"port"`
|
|
}
|
|
|
|
type PostgresConfig struct {
|
|
Host string `mapstructure:"host"`
|
|
Port int `mapstructure:"port"`
|
|
User string `mapstructure:"user"`
|
|
Password string `mapstructure:"password"`
|
|
Dbname string `mapstructure:"dbname"`
|
|
SslMode bool `mapstructure:"ssl_mode"`
|
|
TimeZone string `mapstructure:"timezone"`
|
|
}
|