awssqs

package
v0.0.0-...-089673d Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const Type = function.ProviderType("awssqs")

Type of provider.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSSQS

type AWSSQS struct {
	Service sqsiface.SQSAPI `json:"-" validate:"-"`

	QueueURL           string `json:"queueUrl" validate:"required"`
	Region             string `json:"region" validate:"required"`
	AWSAccessKeyID     string `json:"awsAccessKeyId,omitempty"`
	AWSSecretAccessKey string `json:"awsSecretAccessKey,omitempty"`
	AWSSessionToken    string `json:"awsSessionToken,omitempty"`
}

AWSSQS function implementation

func (AWSSQS) Call

func (a AWSSQS) Call(payload []byte) ([]byte, error)

Call sends message to AWS SQS Queue

func (AWSSQS) MarshalLogObject

func (a AWSSQS) MarshalLogObject(enc zapcore.ObjectEncoder) error

MarshalLogObject is a part of zapcore.ObjectMarshaler interface.

type ProviderLoader

type ProviderLoader struct{}

ProviderLoader implementation

func (ProviderLoader) Load

func (p ProviderLoader) Load(data []byte) (function.Provider, error)

Load decode JSON data as Config and return initialized Provider instance.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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