Documentation
¶
Index ¶
- func Init()
- type Debug
- func (m *Debug) GetQueueLength(queue string) (map[string]int64, error)
- func (m *Debug) GetQueues() ([]string, error)
- func (m *Debug) GetTopicLength(queue, topic string) (int64, error)
- func (m *Debug) GetTopics() (map[string][]string, error)
- func (m *Debug) MaxDelay() time.Duration
- func (m *Debug) Ping() error
- func (m *Debug) Read(_ context.Context, queue, topic string, ch chan<- queue.MessageWrapper) error
- func (m *Debug) Type() string
- func (m *Debug) Write(_ context.Context, queue string, delay time.Duration, content []byte) error
- 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) IsPing() bool
- func (m *Message) NotBefore() time.Time
- func (m *Message) Queue() string
- func (m *Message) Requeue()
- func (m *Message) Retry() int
- func (m *Message) Timestamp() time.Time
- func (m *Message) Topic() string
- func (m *Message) UniqueID() string
- type Queue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Debug ¶
type Debug struct {
// contains filtered or unexported fields
}
func (*Debug) GetQueueLength ¶
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) Requeue ¶
func (m *Message) Requeue()
Requeue indicates the message should be retried.
Click to show internal directories.
Click to hide internal directories.