queue

package
v0.0.0-...-7d90c72 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	ID   string
	Body string
}

type Queue

type Queue interface {
	Send(ctx context.Context, msg string) (msgId string, err error)
	Receive(ctx context.Context) ([]Message, error)
}

func New

func New(queueName, queueUrl, queueRegion string) (Queue, error)

Jump to

Keyboard shortcuts

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