sqs

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultProvider added in v0.36.0

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

func NewProvider

func NewProvider(ctx context.Context, client sqsiface.SQSAPI, queueName string) (*DefaultProvider, error)

func (*DefaultProvider) DeleteSQSMessage added in v0.36.0

func (p *DefaultProvider) DeleteSQSMessage(ctx context.Context, msg *sqs.Message) error

func (*DefaultProvider) GetSQSMessages added in v0.36.0

func (p *DefaultProvider) GetSQSMessages(ctx context.Context) ([]*sqs.Message, error)

func (*DefaultProvider) Name added in v0.36.0

func (p *DefaultProvider) Name() string

func (*DefaultProvider) SendMessage added in v0.36.0

func (p *DefaultProvider) SendMessage(ctx context.Context, body interface{}) (string, error)

type Provider

type Provider interface {
	Name() string
	GetSQSMessages(context.Context) ([]*sqs.Message, error)
	SendMessage(context.Context, interface{}) (string, error)
	DeleteSQSMessage(context.Context, *sqs.Message) error
}

Jump to

Keyboard shortcuts

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