Documentation
¶
Overview ¶
Package queue implements a simple linked list based queue
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue represents a linked list based queue. It contains Operation objects.
func (*Queue) Dequeue ¶
Dequeue removes first element of the queue and returns it. If the queue is empty then second return parameter will be equal to false.
func (*Queue) GetNumOperations ¶
GetNumOperations returns the number of operations with specified userID that are currently in the queue.
func (*Queue) GetOperations ¶
GetOperations returns operation with the given chatID and also the slice which contains positions of these operations.
Click to show internal directories.
Click to hide internal directories.