pool

package
v0.0.0-...-61e4c6b Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	InitialCap  int
	MaxCap      int
	MaxIdle     int
	Factory     func() (interface{}, error)
	Close       func(interface{}) error
	Ping        func(interface{}) error
	IdleTimeout time.Duration
}

type Pool

type Pool interface {
	Get() (interface{}, error)

	Put(interface{}) error

	Close(interface{}) error

	Release()

	Len() int
}

func NewChannelPool

func NewChannelPool(poolConfig *Config) (Pool, error)

Jump to

Keyboard shortcuts

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