sqs

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithConsumeMaxNumberOfMessages

func WithConsumeMaxNumberOfMessages(max int) func(m any)

func WithConsumeMessageAttributeNames

func WithConsumeMessageAttributeNames(names []string) func(m any)

func WithConsumeMessageSystemAttributeNames

func WithConsumeMessageSystemAttributeNames(attributes []string) func(m any)

func WithConsumeRequestAttemptId

func WithConsumeRequestAttemptId(id string) func(m any)

func WithConsumeVisibilityTimeout

func WithConsumeVisibilityTimeout(timeout int64) func(m any)

func WithConsumeWaitTimeSeconds

func WithConsumeWaitTimeSeconds(wait int64) func(m any)

func WithEnqueueDelaySeconds

func WithEnqueueDelaySeconds(delay int64) func(m any)

func WithEnqueueMessageAttributes

func WithEnqueueMessageAttributes(attrs map[string]*sqs.MessageAttributeValue) func(m any)

func WithEnqueueMessageDeduplicationId

func WithEnqueueMessageDeduplicationId(id string) func(m any)

func WithEnqueueMessageGroupId

func WithEnqueueMessageGroupId(id string) func(m any)

func WithEnqueueMessageSystemAttributes

func WithEnqueueMessageSystemAttributes(attrs map[string]*sqs.MessageSystemAttributeValue) func(m any)

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) (*Driver, error)

func (*Driver) Ack

func (c *Driver) Ack(queue, messageID string) error

func (*Driver) Consume

func (d *Driver) Consume(queue string, opts ...func(message any)) (*driver.ConsumerController, error)

func (*Driver) Enqueue

func (d *Driver) Enqueue(queue string, data []byte, opts ...func(message any)) error

func (*Driver) Ping added in v0.2.0

func (d *Driver) Ping() error

type Option

type Option func(*Driver)

func AutoTestConnection

func AutoTestConnection() Option

func WithClient

func WithClient(c sqsClient) Option

func WithRegion

func WithRegion(region string) Option

func WithUrl

func WithUrl(name string) Option

Directories

Path Synopsis
Package mock_sqs is a generated GoMock package.
Package mock_sqs is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL