Documentation
¶
Index ¶
- type BaseHashMap
- type HashMap
- type MapCounter
- func (m *MapCounter) Delete(key interface{})
- func (m *MapCounter) Len() int
- func (m *MapCounter) LoadAndDelete(key interface{}) (retVal interface{}, retExists bool)
- func (m *MapCounter) LoadOrStore(key interface{}, value interface{}) (interface{}, bool)
- func (m *MapCounter) Store(key interface{}, val interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseHashMap ¶
type BaseHashMap interface {
Delete(interface{})
Load(interface{}) (val interface{}, loaded bool)
LoadAndDelete(interface{}) (val interface{}, exists bool)
LoadOrStore(interface{}, interface{}) (val interface{}, loaded bool)
CompareAndSwap(interface{}, interface{}, interface{}) (val interface{}, swapped bool)
Range(func(interface{}, interface{}) (contd bool))
Store(interface{}, interface{})
}
type MapCounter ¶
type MapCounter struct {
BaseHashMap
// contains filtered or unexported fields
}
func (*MapCounter) Delete ¶
func (m *MapCounter) Delete(key interface{})
func (*MapCounter) Len ¶
func (m *MapCounter) Len() int
func (*MapCounter) LoadAndDelete ¶
func (m *MapCounter) LoadAndDelete(key interface{}) (retVal interface{}, retExists bool)
func (*MapCounter) LoadOrStore ¶
func (m *MapCounter) LoadOrStore(key interface{}, value interface{}) (interface{}, bool)
func (*MapCounter) Store ¶
func (m *MapCounter) Store(key interface{}, val interface{})
Click to show internal directories.
Click to hide internal directories.