Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdleConfig ¶
type IdleConfig struct { MinIdlePerAddress int MaxIdlePerAddress int MaxIdleGlobal int MaxIdleTimeout time.Duration }
IdleConfig contains idle configuration for long-connection pool.
func CheckPoolConfig ¶
func CheckPoolConfig(config IdleConfig) *IdleConfig
CheckPoolConfig to check invalid param. default MaxIdleTimeout = 30s, min value is 2s
Click to show internal directories.
Click to hide internal directories.