Help us shape the future of Go! Take the 2026 Go Developer Survey

connpool

package
v0.16.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 1 Imported by: 24

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL