gorillamux

package
v0.0.0-...-4a04dc9 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 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

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

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

func NewALB

func NewALB(router *mux.Router) *GorillaMuxAdapterALB

func (*GorillaMuxAdapterALB) Proxy

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

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

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

func NewV2

func NewV2(router *mux.Router) *GorillaMuxAdapterV2

func (*GorillaMuxAdapterV2) Proxy

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

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