{"modulePath":"github.com/hithereco/aws-lambda-go-api-proxy","version":"v0.14.0-1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package irisadapter\n\nPackage irisLambda add Iris support for the aws-serverless-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 iris.Application.\n\n## Types\n\n```go\ntype IrisLambda struct {\n\tcore.RequestAccessor\n\t// contains filtered or unexported fields\n}\n```\nIrisLambda makes it easy to send API Gateway proxy events to a iris.Application. The library transforms the proxy event into an HTTP request and then creates a proxy response object from the http.ResponseWriter\n\n```go\nfunc New(app *iris.Application) *IrisLambda\n```\nNew creates a new instance of the IrisLambda object. Receives an initialized \\*iris.Application object - normally created with iris.Default(). It returns the initialized instance of the IrisLambda object.\n\n```go\nfunc (i *IrisLambda) 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 iris.Application for routing. It returns a proxy response object generated from the http.ResponseWriter.\n\n```go\nfunc (i *IrisLambda) 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 iris.Application for routing. It returns a proxy response object generated from the http.ResponseWriter.\n\n","path":"github.com/hithereco/aws-lambda-go-api-proxy/iris","name":"irisadapter","synopsis":"Package irisLambda add Iris support for the aws-serverless-go-api library.","isRedistributable":true}
