package
0.0.0-20240707130328-7cf8dae7750a
Repository: https://github.com/nite-coder/blackbear.git
Documentation: pkg.go.dev

# Functions

NewPools creates a new pool with the given options.
WithConnTimeout sets the connTimeout option.
WithIdleConnTimeout sets the idleConnTimeout option.
WithMaxOpenConns sets the maxOpenConns option.
WithMaxRetry sets the maxRetry option.
WithPoolSize sets the poolSize option.
WithReadTimeout sets the readTimeout option.
WithWriteTimeout sets the writeTimeout option.

# Structs

PoolStatus is a struct that contains the current pool size and total connection number for an address.

# Interfaces

Pool is the interface for a tcp connection pool.

# Type aliases

Option is the type for the functional options for the pool.