Documentation ¶
Overview ¶
Package configs implement configurations that the application needs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDB ¶
type MongoDB struct { Protocol string `env:"BOT_MONGODB_PROTOCOL,required"` Username string `env:"BOT_MONGODB_USERNAME,required"` Password string `env:"BOT_MONGODB_PASSWORD,required"` Host string `env:"BOT_MONGODB_HOST,required"` Port string `env:"BOT_MONGODB_PORT,required"` DBName string `env:"BOT_MONGODB_DBNAME,required"` }
type MySQL ¶
type MySQL struct { Username string `env:"BOT_MYSQL_USERNAME,required"` Password string `env:"BOT_MYSQL_PASSWORD,required"` Protocol string `env:"BOT_MYSQL_PROTOCOL,required"` Host string `env:"BOT_MYSQL_HOST,required"` Port string `env:"BOT_MYSQL_PORT,required"` DBName string `env:"BOT_MYSQL_DBNAME,required"` }
type Postgres ¶
type Postgres struct { Host string `env:"BOT_POSTGRES_HOST,required"` Port string `env:"BOT_POSTGRES_PORT,required"` Username string `env:"BOT_POSTGRES_USERNAME,required"` Password string `env:"BOT_POSTGRES_PASSWORD,required"` DBName string `env:"BOT_POSTGRES_DBNAME,required"` SSL string `env:"BOT_POSTGRES_SSL_MODE,required"` }
Click to show internal directories.
Click to hide internal directories.