{"modulePath":"github.com/catdevman/aws-lambda-go-api-proxy","version":"v0.18.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package fiberadapter\n\nPackage fiberadapter adds Fiber support for the aws-severless-go-api library. Uses the core package behind the scenes and exposes the New method to get a new instance and Proxy method to send request to the Fiber app.\n\n## Types\n\n```go\ntype FiberLambda struct {\n\tcore.RequestAccessor\n\t// contains filtered or unexported fields\n}\n```\nFiberLambda makes it easy to send API Gateway proxy events to a fiber.App. The library transforms the proxy event into an HTTP request and then creates a proxy response object from the \\*fiber.Ctx\n\n```go\nfunc New(app *fiber.App) *FiberLambda\n```\nNew creates a new instance of the FiberLambda object. Receives an initialized \\*fiber.App object - normally created with fiber.New(). It returns the initialized instance of the FiberLambda object.\n\n```go\nfunc (f *FiberLambda) Proxy(req 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 fiber.App for routing. It returns a proxy response object generated from the http.ResponseWriter.\n\n```go\nfunc (f *FiberLambda) ProxyV2(req events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)\n```\nProxyV2 is just same as Proxy() but for APIGateway HTTP payload v2\n\n```go\nfunc (f *FiberLambda) ProxyWithContext(ctx context.Context, req 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 echo.Echo for routing. It returns a proxy response object generated from the http.ResponseWriter.\n\n```go\nfunc (f *FiberLambda) ProxyWithContextV2(ctx context.Context, req events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)\n```\nProxyWithContextV2 is just same as ProxyWithContext() but for APIGateway HTTP payload v2\n\n","path":"github.com/catdevman/aws-lambda-go-api-proxy/fiber","name":"fiberadapter","synopsis":"Package fiberadapter adds Fiber support for the aws-severless-go-api library.","isRedistributable":true}
