Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { Driver string `yaml:"driver" mapstructure:"driver"` ConnStr string `yaml:"dsn" mapstructure:"dsn"` // 定时保活 KeepAlive int `yaml:"keep_alive" mapstructure:"keep_alive"` // 最大可空闲连接数量 MaxIdles int `yaml:"max_idles" mapstructure:"max_idles"` // 最大连接数量 MaxOpens int `yaml:"max_opens" mapstructure:"max_opens"` MaxLifeTime int `yaml:"max_life_time" mapstructure:"max_life_time"` LogMode bool `yaml:"log_mode" mapstructure:"log_mode"` }
Click to show internal directories.
Click to hide internal directories.