Documentation ¶
Index ¶
- Constants
- type Map
- func (m *Map) ClearMap()
- func (m *Map) Del(key interface{})
- func (m *Map) Get(key interface{}) interface{}
- func (m *Map) Len() int
- func (m *Map) LockRange(f func(key interface{}, value interface{}))
- func (m *Map) RLockRange(f func(key interface{}, value interface{}))
- func (m *Map) Set(key interface{}, value interface{})
- func (m *Map) TestAndSet(key interface{}, value interface{}) interface{}
- func (m *Map) UnsafeDel(key interface{})
- func (m *Map) UnsafeGet(key interface{}) interface{}
- func (m *Map) UnsafeLen() int
- func (m *Map) UnsafeRange(f func(key interface{}, value interface{}))
- func (m *Map) UnsafeSet(key interface{}, value interface{})
- type MapEx
- func (m *MapEx) ClearMap()
- func (m *MapEx) Del(key interface{})
- func (m *MapEx) Get(key interface{}) interface{}
- func (m *MapEx) GetArrayIdByKey(key interface{}) int
- func (m *MapEx) GetHashCode(key interface{}) int
- func (m *MapEx) GetMapByKey(key interface{}) map[interface{}]interface{}
- func (m *MapEx) Init(hashMapNum int)
- func (m *MapEx) Len() int
- func (m *MapEx) LockGet(key interface{}, f func(value interface{}))
- func (m *MapEx) LockRange(f func(key interface{}, value interface{}))
- func (m *MapEx) LockSet(key interface{}, f func(value interface{}) interface{})
- func (m *MapEx) NextRLockRange(f func(key interface{}, value interface{}))
- func (m *MapEx) RLockRange(f func(key interface{}, value interface{}))
- func (m *MapEx) Set(key interface{}, value interface{})
- func (m *MapEx) UnsafeDel(key interface{})
- func (m *MapEx) UnsafeGet(key interface{}) interface{}
Constants ¶
View Source
const (
DEFAULT_SAFE_MAP_MAX_HASH_NUM = 10
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
func (*Map) RLockRange ¶
func (m *Map) RLockRange(f func(key interface{}, value interface{}))
func (*Map) TestAndSet ¶
func (m *Map) TestAndSet(key interface{}, value interface{}) interface{}
func (*Map) UnsafeRange ¶
func (m *Map) UnsafeRange(f func(key interface{}, value interface{}))
type MapEx ¶
func (*MapEx) GetArrayIdByKey ¶
func (*MapEx) GetHashCode ¶
func (*MapEx) GetMapByKey ¶
func (m *MapEx) GetMapByKey(key interface{}) map[interface{}]interface{}
func (*MapEx) LockSet ¶
func (m *MapEx) LockSet(key interface{}, f func(value interface{}) interface{})
func (*MapEx) NextRLockRange ¶
func (m *MapEx) NextRLockRange(f func(key interface{}, value interface{}))
func (*MapEx) RLockRange ¶
func (m *MapEx) RLockRange(f func(key interface{}, value interface{}))
Click to show internal directories.
Click to hide internal directories.