Documentation
¶
Index ¶
Constants ¶
View Source
const DaemonTypeDBP boot.DaemonType = "dbp"
View Source
const (
DefaultEnableExportMetrics = true
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type PoolCfg ¶
type PoolCfg struct {
Name string `json:"name" yaml:"name"`
Type string `json:"type" yaml:"type"`
DSN string `json:"dsn" yaml:"dsn"`
MaxIdle int `json:"max_idle" yaml:"maxIdle"`
MaxOpen int `json:"max_open" yaml:"maxOpen"`
MaxLifeTime time.Duration `json:"max_life_time" yaml:"maxLifeTime"`
MaxIdleTime time.Duration `json:"max_idle_time" yaml:"maxIdleTime"`
MaxWaitReadyTime time.Duration `json:"max_wait_ready_time" yaml:"maxWaitReadyTime"`
ReadyQuery string `json:"ready_query" yaml:"readyQuery"`
}
func (PoolCfg) MarshalFlag ¶ added in v0.1.55
func (*PoolCfg) UnmarshalFlag ¶ added in v0.1.55
Click to show internal directories.
Click to hide internal directories.