pool

package
v0.0.0-...-4da1013 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

func NewPool

func NewPool() (obj *Pool)

func (*Pool) Contains

func (p *Pool) Contains(r interface{}) bool

func (*Pool) Count

func (p *Pool) Count() int

func (*Pool) Dispose

func (p *Pool) Dispose()

func (*Pool) GetItem

func (p *Pool) GetItem() (r interface{})

func (*Pool) GetOrNewItem

func (p *Pool) GetOrNewItem(args ...interface{}) (r interface{})

func (*Pool) PutItem

func (p *Pool) PutItem(r interface{})

func (*Pool) SetCreator

func (p *Pool) SetCreator(c func(...interface{}) interface{})

type PoolMap

type PoolMap struct {
	// contains filtered or unexported fields
}

func NewPoolMap

func NewPoolMap() (obj *PoolMap)

func (*PoolMap) Count

func (m *PoolMap) Count(key string) int

func (*PoolMap) Dispose

func (m *PoolMap) Dispose()

func (*PoolMap) Get

func (m *PoolMap) Get(key string) interface{}

func (*PoolMap) GetOrNew

func (m *PoolMap) GetOrNew(key string, args ...interface{}) interface{}

func (*PoolMap) Put

func (m *PoolMap) Put(key string, item interface{})

func (*PoolMap) RegisterPool

func (m *PoolMap) RegisterPool(key string, creator func(...interface{}) interface{})

Jump to

Keyboard shortcuts

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