Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
SSLMode string `mapstructure:"sslmode" yaml:"sslmode"` // disable, allow, prefer, require, verify-ca, verify-full
SSLRootCert string `mapstructure:"sslrootcert" yaml:"sslrootcert"`
Addr string `mapstructure:"addr" yaml:"addr"`
Port uint16 `mapstructure:"port" yaml:"port"`
Username string `mapstructure:"username" yaml:"username"`
Password string `mapstructure:"password" yaml:"password"`
DBNames string `mapstructure:"db_names" yaml:"db_names"`
MaxOpenConns int `mapstructure:"max_open_conns" yaml:"max_open_conns"`
MaxIdleConns int `mapstructure:"max_idle_conns" yaml:"max_idle_conns"`
ConnMaxLifetime int `mapstructure:"conn_max_lifetime_sec" yaml:"conn_max_lifetime_sec"`
PingTimeoutSec int `mapstructure:"ping_timeout_sec" yaml:"ping_timeout_sec"`
}
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func New ¶
func New(opt ...ModuleOptions) *Module
type ModuleOptions ¶
type ModuleOptions func(*Module)
Click to show internal directories.
Click to hide internal directories.