Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GorillaMuxAdapter ¶
type GorillaMuxAdapter struct { core.RequestAccessor // contains filtered or unexported fields }
func New ¶
func New(router *mux.Router) *GorillaMuxAdapter
func (*GorillaMuxAdapter) Proxy ¶
func (h *GorillaMuxAdapter) Proxy(event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
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 (*GorillaMuxAdapter) ProxyWithContext ¶ added in v0.3.0
func (h *GorillaMuxAdapter) ProxyWithContext(ctx context.Context, event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
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.
Click to show internal directories.
Click to hide internal directories.