package
Version:
v1.77.0
Opens a new window with list of versions in this module.
Published: Dec 22, 2022
License: Unlicense
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Masters []DSN `yaml:"masters"`
Slaves []DSN `yaml:"slaves"`
MaxOpenConns int `yaml:"max_open_conns"`
MaxIdleConns int `yaml:"max_idle_conns"`
ConnMaxLifetime time.Duration `yaml:"conn_max_lifetime"`
}
Config for SQL DB.
type DSN struct {
URL string `yaml:"url"`
}
DSN for SQL DB.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.