gorillamux

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GorillaMuxAdapter

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

func New

func New(router *mux.Router) *GorillaMuxAdapter

func (*GorillaMuxAdapter) Proxy

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

func (*GorillaMuxAdapter) ProxyWithContext added in v0.3.0

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

type GorillaMuxAdapterV2 added in v0.13.5

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

func NewV2 added in v0.13.5

func NewV2(router *mux.Router) *GorillaMuxAdapterV2

func (*GorillaMuxAdapterV2) Proxy added in v0.13.5

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

func (*GorillaMuxAdapterV2) ProxyWithContext added in v0.13.5

ProxyWithContext receives context and an API Gateway proxy event, transforms them into an http.Request object, and sends it to the mux.Router 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