listen

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SQSQueuePrefix = "eb-listener"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Version    string          `json:"version"`
	ID         string          `json:"id"`
	DetailType string          `json:"detail-type"`
	Source     string          `json:"source"`
	Account    string          `json:"account"`
	Time       time.Time       `json:"time"`
	Region     string          `json:"region"`
	Resources  []interface{}   `json:"resources"`
	Detail     json.RawMessage `json:"detail"`
}

type Listener

type Listener interface{}

type SQS

type SQS struct {
	QueueURL string
	QueueARN string
	// contains filtered or unexported fields
}

func NewSQS

func NewSQS(cfg aws.Config, id xid.ID) (*SQS, error)

func (*SQS) Listen

func (s *SQS) Listen(ctx context.Context)

func (*SQS) Shutdown

func (s *SQS) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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