Documentation ¶
Index ¶
- type SafeQueue
- func (queue *SafeQueue) DirtyLength() uint64
- func (queue *SafeQueue) DirtyPop() (item *amqp.Message)
- func (queue *SafeQueue) DirtyPurge()
- func (queue *SafeQueue) HeadItem() (res *amqp.Message)
- func (queue *SafeQueue) Length() uint64
- func (queue *SafeQueue) Pop() (item *amqp.Message)
- func (queue *SafeQueue) Purge()
- func (queue *SafeQueue) Push(item *amqp.Message)
- func (queue *SafeQueue) PushHead(item *amqp.Message)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafeQueue ¶
SafeQueue represents simple FIFO queue TODO Is that implementation faster? test simple slice queue
func NewSafeQueue ¶
NewSafeQueue returns new instance of queue
func (*SafeQueue) DirtyLength ¶
DirtyLength returns queue length This method is not thread safe
func (*SafeQueue) DirtyPurge ¶
func (queue *SafeQueue) DirtyPurge()
DirtyPurge clear queue This method is not thread safe
Click to show internal directories.
Click to hide internal directories.