Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimeZone ¶
func InitConfig ¶
func InitConfig()
Types ¶
type Key ¶
type Key string
Key is used as a config key
const ( ServerEnv Key = `server.env` ServerTimezone Key = `server.timezone` ServerHttpIP Key = `server.http.ip` ServerHttpPort Key = `server.http.port` ServerHttpCORS Key = `server.http.cors` LogsEnabled Key = `logs.enabled` LogsLevel Key = `logs.log_level` LogsFileEnabled Key = `logs.file.enabled` LogsFileName Key = `logs.file.name` LogsFilePath Key = `logs.file.path` DatabaseName Key = `database.name` DatabaseHost Key = `database.host` DatabaseAuth Key = `database.auth` DatabaseUsername Key = `database.username` DatabasePassword Key = `database.password` RedisEnabled Key = `redis.enabled` RedisHost Key = `redis.host` RedisPort Key = `redis.port` RedisAuth Key = `redis.auth` RedisPassword Key = `redis.password` JwtAccessSecret Key = `jwt.ACCESS_SECRET` JwtRefreshSecret Key = `jwt.REFRESH_SECRET` )
These constants hold all config value keys
Click to show internal directories.
Click to hide internal directories.