sqs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 9 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 sdk.SQSAPI, queueURL string) (*DefaultProvider, error)

func (*DefaultProvider) DeleteSQSMessage added in v0.36.0

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

func (*DefaultProvider) GetSQSMessages added in v0.36.0

func (p *DefaultProvider) GetSQSMessages(ctx context.Context) ([]*sqstypes.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) ([]*sqstypes.Message, error)
	SendMessage(context.Context, interface{}) (string, error)
	DeleteSQSMessage(context.Context, *sqstypes.Message) error
}

Jump to

Keyboard shortcuts

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