handlerfunc

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerFuncAdapter

type HandlerFuncAdapter struct {
	core.RequestAccessor
	// contains filtered or unexported fields
}

func New

func New(handlerFunc http.HandlerFunc) *HandlerFuncAdapter

func (*HandlerFuncAdapter) Proxy

Proxy receives an API Gateway proxy event, transforms it into an http.Request object, and sends it to the http.HandlerFunc for routing. It returns a proxy response object generated from the http.ResponseWriter.

func (*HandlerFuncAdapter) ProxyWithContext

ProxyWithContext receives context and an API Gateway proxy event, transforms them into an http.Request object, and sends it to the http.HandlerFunc for routing. It returns a proxy response object generated from the http.ResponseWriter.

type HandlerFuncAdapterV2

type HandlerFuncAdapterV2 struct {
	core.RequestAccessorV2
	// contains filtered or unexported fields
}

func NewV2

func NewV2(handlerFunc http.HandlerFunc) *HandlerFuncAdapterV2

func (*HandlerFuncAdapterV2) Proxy

Proxy receives an API Gateway proxy event, transforms it into an http.Request object, and sends it to the http.HandlerFunc for routing. It returns a proxy response object generated from the http.ResponseWriter.

func (*HandlerFuncAdapterV2) ProxyWithContext

ProxyWithContext receives context and an API Gateway proxy event, transforms them into an http.Request object, and sends it to the http.HandlerFunc for routing. It returns a proxy response object generated from the http.ResponseWriter.

Jump to

Keyboard shortcuts

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