Documentation ¶
Index ¶
- Variables
- type Message
- type MessageList
- type Queue
- func (q *Queue) Acknowledge(messageID int32) error
- func (q *Queue) Capacity() int
- func (q *Queue) Close() error
- func (q *Queue) Empty()
- func (q *Queue) ExpireInflight()
- func (q *Queue) InflightCount() int
- func (q *Queue) Insert(p *packet.Publish) error
- func (q *Queue) MessageCount() int
- func (q *Queue) Next() *Message
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = fmt.Errorf("queue not found") ErrMessageNotFound = fmt.Errorf("message not found") )
Functions ¶
This section is empty.
Types ¶
type MessageList ¶
type MessageList []*Message
func (MessageList) Apply ¶
func (m MessageList) Apply(f func(*Message))
func (MessageList) Filter ¶
func (m MessageList) Filter(f func(*Message) bool) MessageList
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func (*Queue) Acknowledge ¶
func (*Queue) ExpireInflight ¶
func (q *Queue) ExpireInflight()
func (*Queue) InflightCount ¶
func (*Queue) MessageCount ¶
Click to show internal directories.
Click to hide internal directories.