receiver

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAPIGatewayEvent

handleAPIGatewayEvent é uma função interna que valida a requisição recebida do gateway e direciona a ação solicitada de acordo com o método http recebido.

É importante destacar, que apenas os métodos http indicados como permitido na configuração da função serão permitidos.

Caso o método enviado não seja suportado pela função ainda, ela responderá com um código 400

func HandleDynamoDBEvent

func HandleDynamoDBEvent(event events.DynamoDBEvent, client *dynamodb.DynamoDB) string

func HandleSNSEvent

func HandleSNSEvent(event events.SNSEvent, client *dynamodb.DynamoDB) string

func HandleSQSEvent

func HandleSQSEvent(event events.SQSEvent, client *dynamodb.DynamoDB) string

Types

type ActionRequested

type ActionRequested string
const (
	Create ActionRequested = "POST"
	Read   ActionRequested = "GET"
	Update ActionRequested = "PUT"
	Delete ActionRequested = "DELETE"
)

Jump to

Keyboard shortcuts

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