Documentation ¶
Index ¶
- type SynchronizedList
- type SynchronizedMap
- func (m *SynchronizedMap) Delete(k interface{})
- func (m *SynchronizedMap) Foreach(cb func(k, v interface{}))
- func (m *SynchronizedMap) Get(k interface{}) interface{}
- func (m *SynchronizedMap) IsExist(k interface{}) bool
- func (m *SynchronizedMap) Items() map[interface{}]interface{}
- func (m *SynchronizedMap) Set(k interface{}, v interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SynchronizedList ¶
type SynchronizedList struct {
// contains filtered or unexported fields
}
func NewSynchronizedList ¶
func NewSynchronizedList() *SynchronizedList
func (*SynchronizedList) Len ¶
func (sl *SynchronizedList) Len() (n int)
func (*SynchronizedList) PopBack ¶
func (sl *SynchronizedList) PopBack() (v interface{})
func (*SynchronizedList) PopFront ¶
func (sl *SynchronizedList) PopFront() (v interface{})
func (*SynchronizedList) PushBack ¶
func (sl *SynchronizedList) PushBack(v interface{})
func (*SynchronizedList) PushFront ¶
func (sl *SynchronizedList) PushFront(v interface{})
type SynchronizedMap ¶
type SynchronizedMap struct {
// contains filtered or unexported fields
}
func NewSynchronizedMap ¶
func NewSynchronizedMap() *SynchronizedMap
NewSynchronizedMap return new SynchronizedMap
func (*SynchronizedMap) Delete ¶
func (m *SynchronizedMap) Delete(k interface{})
Delete the given key and value.
func (*SynchronizedMap) Foreach ¶
func (m *SynchronizedMap) Foreach(cb func(k, v interface{}))
func (*SynchronizedMap) Get ¶
func (m *SynchronizedMap) Get(k interface{}) interface{}
Get from maps return the k's value
func (*SynchronizedMap) IsExist ¶
func (m *SynchronizedMap) IsExist(k interface{}) bool
Returns true if k is exist in the map.
func (*SynchronizedMap) Items ¶
func (m *SynchronizedMap) Items() map[interface{}]interface{}
Items returns all items in SynchronizedMap.
func (*SynchronizedMap) Set ¶
func (m *SynchronizedMap) Set(k interface{}, v interface{}) bool
Maps the given key and value. Returns false if the key is already in the map and changes nothing.
Click to show internal directories.
Click to hide internal directories.