Discover Packages
github.com/garfieldlw/common-golang
pkg
pool
package
Version:
v0.0.0-...-61e4c6b
Opens a new window with list of versions in this module.
Published: May 7, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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 interface {
Get() (interface{}, error )
Put(interface{}) error
Close(interface{}) error
Release()
Len() int
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.