Documentation ¶
Index ¶
- type Pool
- func (p *Pool) Contains(r interface{}) bool
- func (p *Pool) Count() int
- func (p *Pool) Dispose()
- func (p *Pool) GetItem() (r interface{})
- func (p *Pool) GetOrNewItem(args ...interface{}) (r interface{})
- func (p *Pool) PutItem(r interface{})
- func (p *Pool) SetCreator(c func(...interface{}) interface{})
- type PoolMap
- func (m *PoolMap) Count(key string) int
- func (m *PoolMap) Dispose()
- func (m *PoolMap) Get(key string) interface{}
- func (m *PoolMap) GetOrNew(key string, args ...interface{}) interface{}
- func (m *PoolMap) Put(key string, item interface{})
- func (m *PoolMap) RegisterPool(key string, creator func(...interface{}) interface{})
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 (*Pool) GetOrNewItem ¶
func (p *Pool) GetOrNewItem(args ...interface{}) (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) RegisterPool ¶
Click to show internal directories.
Click to hide internal directories.