Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBrokenIndex indicates the index is broken: crc32 mismatch ErrBrokenIndex = errors.New("broken index") // ErrClosedTopic indicates put to closed topic ErrClosedTopic = errors.New("closed topic") )
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue can have many topics.
type Topic ¶
type Topic struct {
// contains filtered or unexported fields
}
Topic is a FIFO queue to put and get messages.
func (*Topic) Close ¶
Close marks this topic as closed. Message can not be put to this topic after closed, but is still able to read pending messages.
func (*Topic) Drop ¶
Drop should only be called after Peek and with the right message FIXME: dangous if drop wrong message...
Click to show internal directories.
Click to hide internal directories.