lambdahttp

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 13 Imported by: 0

README

lambdahttp

run go http apps on aws lambda from api gateway or alb events

go get marxus.github.io/go/lambdahttp

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DEBUG = false
)

Functions

func GetThis

func GetThis(r *http.Request) *this

lambdahttp.GetThis(r).Event["httpMethod"]

func MakeHandler

func MakeHandler(handler http.Handler) func(ctx context.Context, ev _o) (_o, error)
handler

lambda.Start(lambdahttp.MakeHandler(http.DefaultServeMux))

Types

type ResponseRecorder added in v0.0.2

type ResponseRecorder struct{ *httptest.ResponseRecorder }

func (*ResponseRecorder) CloseNotify added in v0.0.2

func (*ResponseRecorder) CloseNotify() <-chan bool

Jump to

Keyboard shortcuts

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