Documentation
¶
Overview ¶
Package messagequeue provides a portable message queue API with cross-cutting concerns.
Index ¶
- type MQ
- func (mq *MQ) ChangeVisibility(ctx context.Context, queueURL, receiptHandle string, timeout int) error
- func (mq *MQ) CreateQueue(ctx context.Context, config driver.QueueConfig) (*driver.QueueInfo, error)
- func (mq *MQ) DeleteMessage(ctx context.Context, queueURL, receiptHandle string) error
- func (mq *MQ) DeleteMessageBatch(ctx context.Context, queue string, entries []driver.BatchDeleteEntry) (*driver.BatchDeleteResult, error)
- func (mq *MQ) DeleteQueue(ctx context.Context, url string) error
- func (mq *MQ) GetQueueAttributes(ctx context.Context, queue string) (*driver.QueueAttributes, error)
- func (mq *MQ) GetQueueInfo(ctx context.Context, url string) (*driver.QueueInfo, error)
- func (mq *MQ) ListQueues(ctx context.Context, prefix string) ([]driver.QueueInfo, error)
- func (mq *MQ) PurgeQueue(ctx context.Context, queue string) error
- func (mq *MQ) ReceiveMessages(ctx context.Context, input driver.ReceiveMessageInput) ([]driver.Message, error)
- func (mq *MQ) ReceiveMessagesWithOptions(ctx context.Context, queue string, opts driver.ReceiveOptions) ([]driver.Message, error)
- func (mq *MQ) SendMessage(ctx context.Context, input driver.SendMessageInput) (*driver.SendMessageOutput, error)
- func (mq *MQ) SendMessageBatch(ctx context.Context, queue string, entries []driver.BatchSendEntry) (*driver.BatchSendResult, error)
- func (mq *MQ) SetQueueAttributes(ctx context.Context, queue string, attrs map[string]int) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MQ ¶
type MQ struct {
// contains filtered or unexported fields
}
func (*MQ) ChangeVisibility ¶
func (*MQ) CreateQueue ¶
func (*MQ) DeleteMessage ¶
func (*MQ) DeleteMessageBatch ¶ added in v1.2.0
func (mq *MQ) DeleteMessageBatch( ctx context.Context, queue string, entries []driver.BatchDeleteEntry, ) (*driver.BatchDeleteResult, error)
func (*MQ) GetQueueAttributes ¶ added in v1.2.0
func (*MQ) GetQueueInfo ¶
func (*MQ) ListQueues ¶
func (*MQ) PurgeQueue ¶ added in v1.2.0
func (*MQ) ReceiveMessages ¶
func (*MQ) ReceiveMessagesWithOptions ¶ added in v1.2.0
func (*MQ) SendMessage ¶
func (mq *MQ) SendMessage(ctx context.Context, input driver.SendMessageInput) (*driver.SendMessageOutput, error)
func (*MQ) SendMessageBatch ¶ added in v1.2.0
func (mq *MQ) SendMessageBatch( ctx context.Context, queue string, entries []driver.BatchSendEntry, ) (*driver.BatchSendResult, error)
type Option ¶
type Option func(*MQ)
func WithErrorInjection ¶
func WithLatency ¶
func WithMetrics ¶
func WithRateLimiter ¶
func WithRecorder ¶
Click to show internal directories.
Click to hide internal directories.