Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { DSN string `json:"dsn"` Health *jt.JSONType[time.Duration] `json:"health"` InitialTimeout *jt.JSONType[time.Duration] `json:"initialTimeout"` MaxIdle *jt.JSONType[time.Duration] `json:"maxIdle"` MaxConnLifetime *jt.JSONType[time.Duration] `json:"maxConnLifetime"` MaxConnLifetimeJitter *jt.JSONType[time.Duration] `json:"maxConnLifetimeJitter"` MinConns int32 `json:"minConns"` }
func (Config) DefaultsAndValidate ¶
Click to show internal directories.
Click to hide internal directories.