Documentation ¶
Index ¶
- func New(config Config) (*session.Session, error)
- type Attribute
- type Config
- type Message
- type MessageClient
- type SQS
- func (s SQS) BindDLX(ctx context.Context, queueURL, dlxARN string) error
- func (s SQS) CreateQueue(ctx context.Context, queueName string, isDLX bool) (string, error)
- func (s SQS) Delete(ctx context.Context, queueURL, rcvHandle string) error
- func (s SQS) QueueARN(ctx context.Context, queueURL string) (string, error)
- func (s SQS) Receive(ctx context.Context, queueURL string) (*Message, error)
- func (s SQS) Send(ctx context.Context, req *SendRequest) (string, error)
- type SQSConfig
- type SendRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MessageClient ¶
type MessageClient interface { // Creates a new long polling queue and returns its URL. CreateQueue(ctx context.Context, queueName string, isDLX bool) (string, error) // Get a queue ARN. QueueARN(ctx context.Context, queueURL string) (string, error) // Binds a DLX queue to a normal queue. BindDLX(ctx context.Context, queueURL, dlxARN string) error // Send a message to queue and returns its message ID. Send(ctx context.Context, req *SendRequest) (string, error) // Long polls given amount of messages from a queue. Receive(ctx context.Context, queueURL string) (*Message, error) // Deletes a message from a queue. Delete(ctx context.Context, queueURL, rcvHandle string) error }
type SQSConfig ¶
type SQSConfig struct { Address string Region string Profile string AwsKey string AwsSecret string QueueName string }
SQSConfig struct holds the basic config details of SQS Queue
type SendRequest ¶
Click to show internal directories.
Click to hide internal directories.