Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
DbType string `ini:"TYPE"`
DSN string `ini:"DSN"` // data source name.
Active int `ini:"ACTIVE"` // pool
Idle int `ini:"IDLE"` // pool
IdleTimeout time.Duration `ini:"IDLE_TIMEOUT"` // connect max life time.
SlowThreshold time.Duration `ini:"SLOW_THRESHOLD"` // slow log threshold
}
Click to show internal directories.
Click to hide internal directories.