Documentation ¶
Index ¶
Constants ¶
View Source
const ( High = Priority(0) Mid = Priority(1) Low = Priority(2) )
Variables ¶
View Source
var ( ErrUnknownPriority = errors.New("unknown priority") ErrQueueClosed = errors.New("the queue is closed") )
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue is the priority queue
func (*Queue) Close ¶
func (pq *Queue) Close()
Close the priority queue No messages should be expected to be read after a call to Close
func (*Queue) Read ¶
Read returns the next message by priority An error is set iff the priority queue has been closed
Click to show internal directories.
Click to hide internal directories.