sqs

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 7 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 NewDefaultProvider added in v0.37.0

func NewDefaultProvider(client sqsiface.SQSAPI, queueURL 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