sqs3

package
v0.0.0-...-0c94d32 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sqs3Input

type Sqs3Input struct {
	*Sqs3InputConfig
	// contains filtered or unexported fields
}

func (*Sqs3Input) ConfigStruct

func (input *Sqs3Input) ConfigStruct() interface{}

func (*Sqs3Input) Init

func (input *Sqs3Input) Init(config interface{}) error

func (*Sqs3Input) Run

func (input *Sqs3Input) Run(runner pipeline.InputRunner, helper pipeline.PluginHelper) error

func (*Sqs3Input) Stop

func (input *Sqs3Input) Stop()

type Sqs3InputConfig

type Sqs3InputConfig struct {
	// So we can default to using ProtobufDecoder.
	Decoder string
	// So we can default to using HekaFramingSplitter.
	Splitter string

	SqsQueue string `toml:"sqs_queue"`
	// Defaults to us-east-1. used for both sqs and s3.
	AwsRegion string `toml:"aws_region"`
	// Must be between 0 and 20
	WaitTimeSeconds int64 `toml:"wait_time_seconds"`
}

type SqsBody

type SqsBody struct {
	Records []struct {
		EventName string
		S3        struct {
			Bucket struct {
				Name string
			}
			Object struct {
				Key  string
				Size int
			}
		}
	}
}

Jump to

Keyboard shortcuts

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