Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppOptions ¶
type DBOptions ¶
type DBOptions struct {
DBType string `json:"dbtype,omitempty" mapstructure:"db-type"`
Host string `json:"host,omitempty" mapstructure:"host"`
Port string `json:"port,omitempty" mapstructure:"port"`
Username string `json:"username,omitempty" mapstructure:"username"`
Password string `json:"password" mapstructure:"password"`
Database string `json:"database" mapstructure:"database"`
Config string `json:"config" mapstructure:"config"`
MaxIdleConnections int `json:"max-idle-connections,omitempty" mapstructure:"max-idle-connections"`
MaxOpenConnections int `json:"max-open-connections,omitempty" mapstructure:"max-open-connections"`
MaxConnectionIdleTime int `json:"max-connection-idle-time" mapstructure:"max-connection-idle-time"` //秒
MaxConnectionLifeTime int `json:"max-connection-life-time" mapstructure:"max-connection-life-time"` //秒
LogLevel int `json:"log-level" mapstructure:"log-level"`
IsDebug bool `json:"isdebug" mapstructure:"is-debug"`
TablePrefix string `json:"tableprefix" mapstructure:"table-prefix"`
}
DBOptions defines options for database.
Click to show internal directories.
Click to hide internal directories.