{"modulePath":"github.com/catdevman/aws-lambda-go-api-proxy","version":"v0.18.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package negroniadapter\n\n## Types\n\n```go\ntype NegroniAdapter struct {\n\tcore.RequestAccessor\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(n *negroni.Negroni) *NegroniAdapter\n```\n\n```go\nfunc (h *NegroniAdapter) Proxy(event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)\n```\nProxy receives an API Gateway proxy event, transforms it into an http.Request object, and sends it to the negroni.Negroni for routing. It returns a proxy response object generated from the http.Handler.\n\n```go\nfunc (h *NegroniAdapter) ProxyWithContext(ctx context.Context, event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)\n```\nProxyWithContext receives context and an API Gateway proxy event, transforms them into an http.Request object, and sends it to the negroni.Negroni for routing. It returns a proxy response object generated from the http.ResponseWriter.\n\n","path":"github.com/catdevman/aws-lambda-go-api-proxy/negroni","name":"negroniadapter","synopsis":"","isRedistributable":true}
