Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotActive = fmt.Errorf("db manager is not active")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Username string `yaml:"username" json:"username"` Password string `yaml:"password" json:"password"` Dbname string `yaml:"dbname" json:"dbname"` Host string `yaml:"host" json:"host"` Port int `yaml:"port" json:"port"` MaxOpenConn int `yaml:"max_open_conn" json:"max_open_conn" default:"10"` MaxIdleConn int `yaml:"max_idle_conn" json:"max_idle_conn" default:"5"` MaxLifetime time.Duration `yaml:"max_lifetime" json:"max_lifetime" default:"300s"` EnableTracking bool `yaml:"enable_tracking" json:"enable_tracking" default:"true"` }
Click to show internal directories.
Click to hide internal directories.