Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Creator CreatorFunc
Destroyer DestroyerFunc
}
type Pool ¶
type Resource ¶
type SafeMap ¶
type SafeMap struct {
// contains filtered or unexported fields
}
SafeMap is a map with lock
func (*SafeMap) Check ¶
Check Returns true if k is exist in the map.
func (*SafeMap) Count ¶
Count returns the number of items within the map.
func (*SafeMap) Get ¶
func (m *SafeMap) Get(k interface{}) interface{}
Get from maps return the k's value
Source Files
¶
- pool.go
- safemap.go
Click to show internal directories.
Click to hide internal directories.