pool_helper

package
v1.2.13-alpha0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Close() error
}

type NewClient

type NewClient func() (Client, error)

type Pool

type Pool interface {
	Get() (Client, error)
	Put(Client) error
	Max() int
	Size() int
}

func NewPool

func NewPool(initial, max int, new_client NewClient) (Pool, error)

Jump to

Keyboard shortcuts

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