gorillamux

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 57

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 GorillaMuxAdapterALB added in v0.14.0

type GorillaMuxAdapterALB struct {
	core.RequestAccessorALB
	// contains filtered or unexported fields
}

func NewALB added in v0.14.0

func NewALB(router *mux.Router) *GorillaMuxAdapterALB

func (*GorillaMuxAdapterALB) Proxy added in v0.14.0

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 (*GorillaMuxAdapterALB) ProxyWithContext added in v0.14.0

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.

type GorillaMuxAdapterV2 added in v0.12.0

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

func NewV2 added in v0.12.0

func NewV2(router *mux.Router) *GorillaMuxAdapterV2

func (*GorillaMuxAdapterV2) Proxy added in v0.12.0

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.12.0

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