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) DeleteQueue(ctx context.Context, url string) 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) ReceiveMessages(ctx context.Context, input driver.ReceiveMessageInput) ([]driver.Message, error)
- func (mq *MQ) SendMessage(ctx context.Context, input driver.SendMessageInput) (*driver.SendMessageOutput, 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) GetQueueInfo ¶
func (*MQ) ListQueues ¶
func (*MQ) ReceiveMessages ¶
func (*MQ) SendMessage ¶
func (mq *MQ) SendMessage(ctx context.Context, input driver.SendMessageInput) (*driver.SendMessageOutput, 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.