pool_helper

package
v1.1.31-alpha5 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 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