Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexBuffer ¶
type IndexBuffer struct { Buffer // contains filtered or unexported fields }
func NewIndexBuf ¶
func NewIndexBuf(size int) *IndexBuffer
func (*IndexBuffer) Get ¶
func (ib *IndexBuffer) Get(k string) *interface{}
func (*IndexBuffer) Put ¶
func (ib *IndexBuffer) Put(k string, v interface{})
type LimitQueue ¶
type LimitQueue struct {
// contains filtered or unexported fields
}
LimitQueue represents a single instance of the limit queue data structure.
func NewLimitQueue ¶
func NewLimitQueue(len int) *LimitQueue
New constructs and returns a new LimitQueue.
func (*LimitQueue) Add ¶
func (q *LimitQueue) Add(elem interface{})
Add puts an element on the end of the queue.
func (*LimitQueue) Capacity ¶
func (q *LimitQueue) Capacity() int
Length returns the number of elements currently stored in the queue.
func (*LimitQueue) Peek ¶
func (q *LimitQueue) Peek() interface{}
Peek returns the element at the head of the queue. This call panics if the queue is empty.
Click to show internal directories.
Click to hide internal directories.