awesome_pool

package module
v0.0.0-...-42d7ff8 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 2

README

awesome-pool

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	MaxRoutine int
	Length     int
	T          []*connPool
	FN         func() net.Conn
	Freex      chan int
	N          []*msg
	sync.RWMutex
}

func NewPool

func NewPool(maxRoutine int, dialAddress string) (*Pool, error)

func (*Pool) Free

func (p *Pool) Free(n int)

func (*Pool) Get

func (p *Pool) Get() *msg

get a idle net.Conn

Jump to

Keyboard shortcuts

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