Discover Packages
github.com/cupcake/dilithium
queue
package
Version:
v0.0.0-...-2371667
Opens a new window with list of versions in this module.
Published: Feb 5, 2014
License: BSD-3-Clause
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
DiskQueue implements the Queue interface
providing a filesystem backed FIFO queue
Close cleans up the queue and persists metadata
Depth returns the depth of the queue
Empty destructively clears out any pending data in the queue
by fast forwarding read positions and removing intermediate files
Put writes a []byte to the queue
ReadChan returns the []byte channel for reading data
Queue represents the behavior for the secondary message
storage system
NewDiskQueue instantiates a new instance of DiskQueue, retrieving metadata
from the filesystem and starting the read ahead goroutine
Source Files
¶
Click to show internal directories.
Click to hide internal directories.