Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet(GetMySQLClient, NewDBConfig)
Set Dependency injection target in config
Functions ¶
func GetMySQLClient ¶
Types ¶
type DBConfig ¶
type DBConfig struct {
Username string `mapstructure:"DB_USERNAME"`
Password string `mapstructure:"DB_PASSWORD"`
Host string `mapstructure:"DB_HOST"`
Port int `mapstructure:"DB_PORT"`
Database string `mapstructure:"DB_DATABASE"`
}
func NewDBConfig ¶
func NewDBConfig() (value DBConfig)
Click to show internal directories.
Click to hide internal directories.