sqs

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgHandler

type MsgHandler func(msg types.Message)

type Publisher

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

func NewPublisher

func NewPublisher(sqsClient *sqs.Client, queueURL string) *Publisher

func (*Publisher) Publish

type SQSClient

type SQSClient interface {
	ReceiveMessage(
		ctx context.Context,
		params *sqs.ReceiveMessageInput, optFns ...func(*sqs.Options)) (*sqs.ReceiveMessageOutput, error)
}

type Subscriber

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

func NewSubscriber

func NewSubscriber(c SubscriberConfig) *Subscriber

func (*Subscriber) Subscribe

func (s *Subscriber) Subscribe(ctx context.Context) chan error

func (*Subscriber) Unsubscribe

func (s *Subscriber) Unsubscribe() error

type SubscriberConfig

type SubscriberConfig struct {
	SQSClient  *sqs.Client
	MsgHandler MsgHandler
	SQSConfig  pubsub.SQS
}

Jump to

Keyboard shortcuts

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