sqs

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MessageSystemAttributeNameSentTimestamp = sqs.MessageSystemAttributeNameSentTimestamp

Functions

This section is empty.

Types

type Msg

type Msg struct {
	URL           *string
	SQS           *sqs.SQS
	M             *sqs.DeleteMessageBatchRequestEntry
	B             []byte
	SentTimestamp int64
	Hash          string
}

Msg is the message struct that were captured by the input plugin

func (*Msg) Body

func (m *Msg) Body() []byte

Body will return the bytes of the SQS message

func (*Msg) CreationTimestampMilliseconds

func (m *Msg) CreationTimestampMilliseconds() int64

CreationTimestampMilliseconds will return the creation timestamp for the message

func (*Msg) GetHash added in v1.7.0

func (m *Msg) GetHash() string

type SQSPlugin

type SQSPlugin struct {
	URL     string
	Region  string
	Profile string
	// contains filtered or unexported fields
}

SQSPlugin struct for SQS Input plugin

func NewOrGet

func NewOrGet(r *reactor.Reactor, c map[string]interface{}) (*SQSPlugin, error)

NewOrGet create a new SQS plugin and relate it with the Reactor

func (*SQSPlugin) Done added in v1.5.0

func (p *SQSPlugin) Done(v lib.Msg, status bool)

func (*SQSPlugin) Exit

func (p *SQSPlugin) Exit()

Exit stops the pooling from SQS

func (*SQSPlugin) KeepAlive added in v1.7.1

func (p *SQSPlugin) KeepAlive(ctx context.Context, t time.Duration, v lib.Msg) (err error)

func (*SQSPlugin) Put

func (p *SQSPlugin) Put(v lib.Msg) error

Put is not needed in SQS

func (*SQSPlugin) Stop added in v1.5.0

func (p *SQSPlugin) Stop()

Stops listening

Jump to

Keyboard shortcuts

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