sqs

package
v1.29.0-dev-ontology-v... Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 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 Body

type Body struct {
	Message string `json:"Message"`
}

SQS Message Format

type Client

type Client interface {
	ListenAndServeQueue(ctx context.Context) []ConceptUpdate
	RemoveMessageFromQueue(ctx context.Context, receiptHandle *string) error
	Healthcheck() fthealth.Check
}

func NewClient

func NewClient(awsRegion, queueURL, endpoint string, messagesToProcess, visibilityTimeout, waitTime int) (Client, error)

type ConceptUpdate

type ConceptUpdate struct {
	UUID          string
	Bookmark      string
	ReceiptHandle *string
}

type Message

type Message struct {
	Records []Record `json:"Records"`
}

type NotificationClient

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

func (*NotificationClient) Healthcheck

func (c *NotificationClient) Healthcheck() fthealth.Check

func (*NotificationClient) ListenAndServeQueue

func (c *NotificationClient) ListenAndServeQueue(ctx context.Context) []ConceptUpdate

func (*NotificationClient) RemoveMessageFromQueue

func (c *NotificationClient) RemoveMessageFromQueue(ctx context.Context, receiptHandle *string) error

type Record

type Record struct {
	S3       s3     `json:"s3"`
	Bookmark string `json:"bookmark"`
}

Jump to

Keyboard shortcuts

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