Documentation
¶
Index ¶
Constants ¶
View Source
const PrefixWarrant = "warrant"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Port int `mapstructure:"port"`
LogLevel int8 `mapstructure:"logLevel"`
EnableAccessLog bool `mapstructure:"enableAccessLog"`
Datastore DatastoreConfig `mapstructure:"datastore"`
}
type DatastoreConfig ¶
type DatastoreConfig struct {
MySQL *MySQLConfig `mapstructure:"mysql"`
}
type MySQLConfig ¶
type MySQLConfig struct {
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
Hostname string `mapstructure:"hostname"`
Database string `mapstructure:"database"`
MaxIdleConnections int `mapstructure:"maxIdleConnections"`
MaxOpenConnections int `mapstructure:"maxOpenConncetions"`
}
Click to show internal directories.
Click to hide internal directories.