Discover Packages
github.com/assyatier21/simple-cms-admin-v2
config
package
Version:
v0.0.0-...-b696ed4
Opens a new window with list of versions in this module.
Published: Jun 27, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type ApplicationConfig struct {
Host string `mapstructure:"APP_HOST"`
Port string `mapstructure:"APP_PORT"`
}
type Config struct {
ApplicationConfig ApplicationConfig `mapstructure:"APP_CONFIG"`
PostgresConfig DBConfig `mapstructure:"POSTGRESQL"`
ElasticConfig ElasticConfig `mapstructure:"ELASTICSEARCH"`
RedisConfig RedisConfig `mapstructure:"REDIS_CONFIG"`
JWTSecretKey string `mapstructure:"JWT_SECRET_KEY"`
}
type DBConfig struct {
Host string `mapstructure:"POSTGRES_HOST"`
Port string `mapstructure:"POSTGRES_PORT"`
Database string `mapstructure:"POSTGRES_DB"`
Schema string `mapstructure:"POSTGRES_SCHEMA"`
User string `mapstructure:"POSTGRES_USER"`
Password string `mapstructure:"POSTGRES_PASSWORD"`
}
type ElasticConfig struct {
Address string `mapstructure:"ESADDRESS"`
IndexArticle string `mapstructure:"ES_INDEX_ARTICLE"`
IndexCategory string `mapstructure:"ES_INDEX_CATEGORY"`
}
type RedisConfig struct {
Host string `mapstructure:"REDIS_HOST"`
Port string `mapstructure:"REDIS_PORT"`
Username string `mapstructure:"REDIS_USERNAME"`
Password string `mapstructure:"REDIS_PASSWORD"`
DB int `mapstructure:"REDIS_DB"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.