Documentation ¶
Index ¶
- type IPQ
- type Item
- type MemoryIPQ
- func (m *MemoryIPQ) Del(k interface{})
- func (m *MemoryIPQ) DelInRange(f func(*Item) (bool, bool))
- func (m *MemoryIPQ) Free()
- func (m *MemoryIPQ) Get(k interface{}) interface{}
- func (m *MemoryIPQ) Len() int
- func (m *MemoryIPQ) List() *list.List
- func (m *MemoryIPQ) PushBack(k, v interface{}, move, update bool)
- func (m *MemoryIPQ) Range(f func(*Item) bool)
- func (m *MemoryIPQ) Reset()
- func (m *MemoryIPQ) SpaceLeft() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPQ ¶
type IPQ interface { Len() int SpaceLeft() bool // PushBack push element to the back of the queue // if k exists and move is true, element will be move to back // if k exists and update is true, Value of element will be replaced PushBack(k, v interface{}, move, update bool) Get(k interface{}) interface{} Del(k interface{}) Range(f func(*Item) bool) DelInRange(f func(*Item) (bool, bool)) Reset() Free() }
type MemoryIPQ ¶
func NewMemoryIPQ ¶
Click to show internal directories.
Click to hide internal directories.