internal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToAPIGatewayResponse

func ConvertToAPIGatewayResponse(response interface{}) (events.APIGatewayProxyResponse, error)

ConvertToAPIGatewayResponse converts the value pointed to by the response parameter into an APIGatewayResponse instance. If the given parameter is already an APIGatewayResponse, it is returned as is. Otherwise, a new instance is created and the given parameter is attached as part of the body field

func GetBody

func GetBody(request interface{}) (string, error)

GetBody returns the contents of the Body field from the given parameter

func GetBytes

func GetBytes(key interface{}) ([]byte, error)

GetBytes returns the JSON encoding of key as a slice of bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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