Documentation
¶
Index ¶
- Constants
- func Init()
- type Debug
- type EmptyIdempotent
- type Message
- func (m *Message) Begin()
- func (m *Message) Cancel()
- func (m *Message) Content() []byte
- func (m *Message) End()
- func (m *Message) Fail()
- func (m *Message) Group() string
- func (m *Message) IsPing() bool
- func (m *Message) Key() string
- func (m *Message) NotBefore() time.Time
- func (m *Message) Properties() map[string]string
- func (m *Message) Requeue()
- func (m *Message) Retry() int
- func (m *Message) Timestamp() time.Time
- func (m *Message) Topic() string
- type Queue
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Debug ¶
type Debug struct {
// contains filtered or unexported fields
}
func (*Debug) Read ¶
func (m *Debug) Read(topic string, ch chan<- queue.MessageWrapper, opts *queue.SubscribeOptions) error
type EmptyIdempotent ¶
type EmptyIdempotent struct{}
func (*EmptyIdempotent) AfterProcess ¶
func (p *EmptyIdempotent) AfterProcess(_ queue.Message, _ queue.ProcessStatus)
AfterProcess is invoked after processing.
func (*EmptyIdempotent) BeforeProcess ¶
func (p *EmptyIdempotent) BeforeProcess(_ queue.Message) bool
BeforeProcess is invoked before process message.
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func (*Message) NotBefore ¶
NotBefore indicates the message should not be processed before this timestamp.
func (*Message) Properties ¶
Properties returns the properties of this message.
func (*Message) Requeue ¶
func (m *Message) Requeue()
Requeue indicates the message should be retried.
Click to show internal directories.
Click to hide internal directories.