Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { Env string `env:"ENV",notEmpty` SentryDSN string `env:"SENTRY_DSN",notEmpty` }
func GetAppConfig ¶
func GetAppConfig() *AppConfig
func NewAppConfig ¶
func NewAppConfig() *AppConfig
type DBConfig ¶
type DBConfig struct { User string `env:"MYSQL_USER",notEmpty` Pass string `env:"MYSQL_PASSWORD",notEmpty` Protocol string `env:"MYSQL_PROTOCOL",notEmpty` Database string `env:"MYSQL_DATABASE",notEmpty` }
func GetDBConfig ¶
func GetDBConfig() *DBConfig
func NewDBConfig ¶
func NewDBConfig() *DBConfig
type ExtAPIConfig ¶ added in v0.1.4
type ExtAPIConfig struct {
URL string `env:"EXTERNAL_API_URL",notEmpty`
}
func GetExtAPIConfig ¶ added in v0.1.4
func GetExtAPIConfig() *ExtAPIConfig
func NewExtAPIConfig ¶ added in v0.1.4
func NewExtAPIConfig() *ExtAPIConfig
Click to show internal directories.
Click to hide internal directories.