Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDuplicateKeyError ¶
func IsNoFoundError ¶
func RegisterCallbacks ¶
Types ¶
type Config ¶
type Config struct {
Host string `json:"host"`
Port int `json:"port"`
User string `json:"user"`
Password string `json:"password"`
Database string `json:"database"`
SlaveHost string `json:"slave_host,omitempty"`
SlavePort int `json:"slave_port,omitempty"`
SlaveUser string `json:"slave_user,omitempty"`
SlavePassword string `json:"slave_password,omitempty"`
SlaveDatabase string `json:"slave_database,omitempty"`
MaxOpenConn int `json:"max_open_conn,omitempty"`
MaxIdleConn int `json:"max_idle_conn,omitempty"`
MaxIdleTimeSec int `json:"max_life_time_sec,omitempty"`
LogConfig *sql.LogConfig `json:"log_config,omitempty"`
DisableErrorHook bool `json:"disable_error_hook,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.