lambdautils

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(msg string) *events.APIGatewayProxyResponse

func Created

func InternalServerError

func InternalServerError(msg string) *events.APIGatewayProxyResponse

func NewMultiEventTypeHandler

func NewMultiEventTypeHandler(fn multiEventTypeHandlerFn) lambda.Handler

func NoContent

func NoContent() *events.APIGatewayProxyResponse

func NotFound

func NotFound(msg string) *events.APIGatewayProxyResponse

func OkText

func RespondJson

func RespondJson(out interface{}) (*events.APIGatewayProxyResponse, error)

func ServeApiGatewayProxyRequestUsingHttpHandler

func ServeApiGatewayProxyRequestUsingHttpHandler(
	ctx context.Context,
	proxyRequest *events.APIGatewayProxyRequest,
	httpHandler http.Handler,
) ([]byte, error)

github.com/akrylysov/algnhsa has similar implementation than apex/gateway, but had the useful bits non-exported and it used httptest for production code

Types

This section is empty.

Jump to

Keyboard shortcuts

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