bridge

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorAPIGatewayResponse

func ErrorAPIGatewayResponse(err error) *apigw.ProxyResponse

ErrorAPIGatewayResponse returns error api gateway response

func NewHTTPRequest

func NewHTTPRequest(apiRequest *apigw.ProxyRequest) (*http.Request, error)

NewHTTPRequest create a request for supplied apiRequest

func NewHTTPWriter

func NewHTTPWriter(proxy *apigw.ProxyResponse) http.ResponseWriter

NewHTTPWriter creates an http writer

func SetCORSHeaderIfNeeded

func SetCORSHeaderIfNeeded(apiRequest *apigw.ProxyRequest, response *apigw.ProxyResponse)

SetCORSHeaderIfNeeded sets CORS headers

Types

This section is empty.

Jump to

Keyboard shortcuts

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