Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server `ini:"server"` MySQLConfig `ini:"mysql"` SqliteConfig `ini:"sqlite"` OracleConfig `ini:"oracle"` }
var SystemConfig *Config
SystemConfig global config
type MySQLConfig ¶
type MySQLConfig struct { Host string `ini:"host"` Port int `ini:"port"` Dbname string `ini:"dbname"` User string `ini:"user"` Passwd string `ini:"passwd"` Charset string `ini:"charset"` MaxOpenConns int `ini:"maxOpenConns"` MaxIdleConns int `ini:"maxIdleConns"` MaxLifetimeConns int `ini:"maxLifetimeConns"` }
type OracleConfig ¶
type SqliteConfig ¶
type SqliteConfig struct {
Filename string `ini:"filename"`
}
Click to show internal directories.
Click to hide internal directories.