Documentation ¶
Index ¶
Constants ¶
View Source
const (
Prefix = ""
)
Package constants definition.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
DB MySQL
}
App represents all configuration of qr-service application.
var AppConfig App
AppConfig is addition config for gami-service
type MySQL ¶
type MySQL struct { Username string `default:"root" envconfig:"MYSQL_USER"` Password string `default:"root" envconfig:"MYSQL_PASS"` Host string `default:"127.0.0.1" envconfig:"MYSQL_HOST"` Port int `default:"3306" envconfig:"MYSQL_PORT"` Database string `default:"evoucher_service" envconfig:"MYSQL_DB"` }
MySQL represents configuration of MySQL database.
func (*MySQL) ConnectionString ¶
ConnectionString returns connection string of MySQL database.
Click to show internal directories.
Click to hide internal directories.