pool

package
v0.0.0-...-ca7bf4a Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	Name     string
	Capacity int
	// contains filtered or unexported fields
}

func NewPool

func NewPool(name string, capacity int) *Pool

func (*Pool) Add

func (p *Pool) Add(connection net.Conn)

func (*Pool) Len

func (p *Pool) Len() int

func (*Pool) Next

func (p *Pool) Next() net.Conn

func (*Pool) Return

func (p *Pool) Return(connection net.Conn)

Jump to

Keyboard shortcuts

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