Documentation ¶
Index ¶
- Constants
- type BoltQ
- func (b *BoltQ) Close()
- func (b *BoltQ) Dequeue() (value []byte, err error)
- func (b *BoltQ) Enqueue(value []byte) (err error)
- func (b *BoltQ) GetMaxQueueSize() int64
- func (b *BoltQ) IsFull() bool
- func (b *BoltQ) Pop() (value []byte, err error)
- func (b *BoltQ) PopBottom() (value []byte, err error)
- func (b *BoltQ) PopMany(fn func([]byte) bool) error
- func (b *BoltQ) PopManyBottom(fn func([]byte) bool) error
- func (b *BoltQ) Push(value []byte) (err error)
- func (b *BoltQ) SetMaxQueueSize(size int64)
- func (b *BoltQ) Size() int64
Constants ¶
View Source
const ( ERROR_ON_FULL = iota // raise an error if the queue reached `max_queue_size` POP_ON_FULL // popout oldest item if queue size above `max_queue_size` )
View Source
const ( BUCKET_STATS = "~~stats~~" BUCKET_QUEUE = "queue" KEY_TOTALITEM = "TotalItemCount" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltQ ¶
type BoltQ struct {
// contains filtered or unexported fields
}
func (*BoltQ) GetMaxQueueSize ¶
func (*BoltQ) SetMaxQueueSize ¶
Click to show internal directories.
Click to hide internal directories.