Documentation ¶
Index ¶
- func NewManager(sqs *sqs.SQS, accountId string) msgqueue.Manager
- type Queue
- func (q *Queue) Add(msg *msgqueue.Message) error
- func (q *Queue) Call(args ...interface{}) error
- func (q *Queue) CallOnce(period time.Duration, args ...interface{}) error
- func (q *Queue) Close() error
- func (q *Queue) CloseTimeout(timeout time.Duration) error
- func (q *Queue) Delete(msg *msgqueue.Message) error
- func (q *Queue) GetAddQueue() *memqueue.Queue
- func (q *Queue) GetDeleteQueue() *memqueue.Queue
- func (q *Queue) Len() (int, error)
- func (q *Queue) Name() string
- func (q *Queue) Options() *msgqueue.Options
- func (q *Queue) Processor() *msgqueue.Processor
- func (q *Queue) Purge() error
- func (q *Queue) Release(msg *msgqueue.Message) error
- func (q *Queue) ReserveN(n int, reservationTimeout time.Duration, waitTimeout time.Duration) ([]*msgqueue.Message, error)
- func (q *Queue) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func (*Queue) CallOnce ¶
CallOnce works like Call, but it returns ErrDuplicate if message with such args was already added in a period.
func (*Queue) CloseTimeout ¶
Close closes the queue waiting for pending messages to be processed.
func (*Queue) GetAddQueue ¶ added in v1.8.0
func (*Queue) GetDeleteQueue ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.