sqs

package
v0.0.0-...-3c9ddde Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Start(context.Context)
}

func NewHandler

func NewHandler(inChannel chan *sqs.Message, client *sqs.SQS, queueUrl *sqs.GetQueueUrlOutput, msgHandler *MessageHandler) Handler

type MessageHandler

type MessageHandler interface {
	Handle(msg *model.Message)
}

type Receiver

type Receiver struct {
	Client   *sqs.SQS
	QueueUrl *sqs.GetQueueUrlOutput
}

func NewReceiver

func NewReceiver(queueName string) Receiver

func (*Receiver) Start

func (r *Receiver) Start(ctx context.Context, handler MessageHandler, workers int)

Jump to

Keyboard shortcuts

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