sqs

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: LGPL-2.1 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsSqsAdapter added in v0.3.1

type AwsSqsAdapter struct {
	*adapter.BaseAdapter
	// contains filtered or unexported fields
}

func NewAwsSqsAdapter added in v0.3.1

func NewAwsSqsAdapter(name string, config *AwsSqsConfig) *AwsSqsAdapter

func (*AwsSqsAdapter) Close added in v0.3.1

func (a *AwsSqsAdapter) Close() error

func (*AwsSqsAdapter) Consume added in v0.3.1

func (a *AwsSqsAdapter) Consume(queueUrl string) ([]*sqs.Message, error)

func (*AwsSqsAdapter) CreateQueue added in v0.3.1

func (a *AwsSqsAdapter) CreateQueue(qName string) (err error)

func (*AwsSqsAdapter) DeleteMessage added in v0.3.1

func (a *AwsSqsAdapter) DeleteMessage(qName string, receiptHandle string) (err error)

func (*AwsSqsAdapter) DeleteQueue added in v0.3.1

func (a *AwsSqsAdapter) DeleteQueue(qName string) (err error)

func (*AwsSqsAdapter) GetQueueUrl added in v0.3.2

func (a *AwsSqsAdapter) GetQueueUrl(qName string) (string, error)

func (*AwsSqsAdapter) ListQueues added in v0.3.1

func (a *AwsSqsAdapter) ListQueues() (*[]*string, error)

func (*AwsSqsAdapter) Publish added in v0.3.1

func (a *AwsSqsAdapter) Publish(message string) (err error)

func (*AwsSqsAdapter) PublishQueue added in v0.3.2

func (a *AwsSqsAdapter) PublishQueue(qName string, message string) (err error)

func (*AwsSqsAdapter) PublishQueueBatchRaw added in v0.3.2

func (a *AwsSqsAdapter) PublishQueueBatchRaw(input *sqs.SendMessageBatchInput) (*sqs.SendMessageBatchOutput, error)

func (*AwsSqsAdapter) PublishQueueRaw added in v0.3.2

func (a *AwsSqsAdapter) PublishQueueRaw(input *sqs.SendMessageInput) (*sqs.SendMessageOutput, error)

func (*AwsSqsAdapter) Setup added in v0.3.1

func (a *AwsSqsAdapter) Setup() (err error)

type AwsSqsConfig added in v0.3.1

type AwsSqsConfig struct {
	Endpoint            string `json:"Endpoint,omitempty" config:"Endpoint"`
	Region              string `json:"Region,omitempty" config:"Region,required"`
	AccessKeyID         string `json:"AccessKeyID,omitempty" config:"AccessKeyID"`
	SecretAccessKey     string `json:"SecretAccessKey,omitempty" config:"SecretAccessKey"`
	SessionToken        string `json:"SessionToken,omitempty" config:"SessionToken"`
	MaxNumberOfMessages int64  `json:"MaxNumberOfMessages" config:"MaxNumberOfMessages"`
	WaitTimeSeconds     int64  `json:"WaitTimeSeconds" config:"WaitTimeSeconds"`
	VisibilityTimeout   int64  `json:"VisibilityTimeout" config:"VisibilityTimeout"`
	SharedCredentials   bool   `json:"SharedCredentials,omitempty" config:"SharedCredentials"`

	Queue string `json:"Queue,omitempty" config:"Queue"`
}

Jump to

Keyboard shortcuts

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