Documentation ¶
Index ¶
- type Consumer
- func (c *Consumer) DeleteMessage(ctx context.Context, id *string) error
- func (c *Consumer) GetMessages(ctx context.Context) ([]aws_sqs_types.Message, error)
- func (c *Consumer) GetQueueAttributes(ctx context.Context) (*aws_sqs.GetQueueAttributesOutput, error)
- func (c *Consumer) GetVisibilityTimeout() time.Duration
- type ConsumerOption
- type Producer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
Consumer represents SQS consumer.
func NewConsumer ¶
New instances of a Consumer to consume SQS messages.
func (*Consumer) DeleteMessage ¶
DeleteMessage deletes messages from SQS.
func (*Consumer) GetMessages ¶
GetMessages retrieves messages from SQS.
func (*Consumer) GetQueueAttributes ¶
func (c *Consumer) GetQueueAttributes(ctx context.Context) (*aws_sqs.GetQueueAttributesOutput, error)
GetQueueAttributes get queue attributes.
func (*Consumer) GetVisibilityTimeout ¶
GetVisibilityTimeout returns visibility timeout.
type ConsumerOption ¶
type ConsumerOption func(*Consumer)
ConsumerOption represents a consumer option function.
func WithMaxMessages ¶
func WithMaxMessages(v int32) ConsumerOption
WithMaxMessages allows to specify an maximum number of messages to return when setting a value.
func WithVisibilityTimeout ¶
func WithVisibilityTimeout(v int32) ConsumerOption
WithVisibilityTimeout allows to specify a visibility timeout when setting a value.
func WithWaitTimeSeconds ¶
func WithWaitTimeSeconds(v int32) ConsumerOption
WithWaitTimeSeconds allows to specify a wait time when setting a value.
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func NewProducer ¶
New instances of a client to connect SQS.
Click to show internal directories.
Click to hide internal directories.