package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev
# Functions
NewIDPool creates and initializes an IDPool.
NewResourcePool creates a new ResourcePool pool.
# Variables
ErrClosed is returned if ResourcePool is used when it's closed.
ErrTimeout is returned if a resource get times out.
# Structs
IDPool is used to ensure that the set of IDs in use concurrently never contains any duplicates.
Numbered allows you to manage resources by tracking them with numbers.
ResourcePool allows you to use a pool of resources.
# Interfaces
Resource defines the interface that every resource must provide.
# Type aliases
Factory is a function that can be used to create a resource.