Documentation ¶
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 - basic file based queue
func New ¶
New creates a new file-based queue. Note that a file is written, read and deleted as part of this process to check that the path is usable. NOTE: Order is maintained using file ModTime, so there may be issues if the interval between messages is less than the file system ModTime resolution.
func (*Queue) Wait ¶
func (q *Queue) Wait() chan struct{}
Wait returns a channel that will be closed when there is something in the queue
func (*Queue) WaitForEmpty ¶
func (q *Queue) WaitForEmpty() chan struct{}
WaitForEmpty returns a channel that is closed when the queue is empty
Click to show internal directories.
Click to hide internal directories.