Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
IsProduction bool `mapstructure:"is_production"`
Database string `mapstructure:"database"`
Server struct {
Port string `mapstructure:"port"`
Host string `mapstructure:"host"`
CertsFile string `mapstructure:"certs_file"`
KeyFile string `mapstructure:"key_file"`
} `mapstructure:"server"`
GinDisableReleaseMode bool `mapstructure:"gin_disable_release_mode"`
GitCommit string `mapstructure:"-"`
GitTag string `mapstructure:"-"`
DBPostgresConfig struct {
Host string `mapstructure:"host"`
Port string `mapstructure:"port"`
User string `mapstructure:"user"`
Password string `mapstructure:"password"`
DatabaseName string `mapstructure:"database_name"`
} `mapstructure:"db_postgres"`
DBMongoConfig struct {
Host string `mapstructure:"host"`
Port string `mapstructure:"port"`
User string `mapstructure:"user"`
Password string `mapstructure:"password"`
DatabaseName string `mapstructure:"database_name"`
} `mapstructure:"db_mongo"`
}
func InitConfig ¶
Click to show internal directories.
Click to hide internal directories.