Documentation ¶
Index ¶
Constants ¶
View Source
const MsgIDLength = 16
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendQueue ¶
type BackendQueue interface { Put([]byte) error ReadChan() chan []byte // this is expected to be an *unbuffered* channel Close() error Delete() error Depth() int64 Empty() error }
BackendQueue represents the behavior for the secondary message storage system
func NewDiskQueue ¶
func NewDiskQueue(name string, dataPath string, maxBytesPerFile int64, syncEvery int64, syncTimeout time.Duration) BackendQueue
NewDiskQueue instantiates a new instance of DiskQueue, retrieving metadata from the filesystem and starting the read ahead goroutine
type DiskQueue ¶
DiskQueue implements the BackendQueue interface providing a filesystem backed FIFO queue
type Message ¶
type Message struct { ID MessageID Body []byte Timestamp int64 Attempts uint16 // contains filtered or unexported fields }
func NewMessage ¶
type MessageID ¶
type MessageID [MsgIDLength]byte
Click to show internal directories.
Click to hide internal directories.