{"modulePath":"github.com/hithereco/aws-lambda-go-api-proxy","version":"v0.14.0-1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package echoadapter\n\nPackge echolambda add Echo 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 echo.Echo\n\n## Types\n\n```go\ntype EchoLambda struct {\n\tcore.RequestAccessor\n\n\tEcho *echo.Echo\n}\n```\nEchoLambda makes it easy to send API Gateway proxy events to a echo.Echo. 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(e *echo.Echo) *EchoLambda\n```\nNew creates a new instance of the EchoLambda object. Receives an initialized \\*echo.Echo object - normally created with echo.New(). It returns the initialized instance of the EchoLambda object.\n\n```go\nfunc (e *EchoLambda) 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 echo.Echo for routing. It returns a proxy response object generated from the http.ResponseWriter.\n\n```go\nfunc (e *EchoLambda) 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\ntype EchoLambdaALB struct {\n\tcore.RequestAccessorALB\n\n\tEcho *echo.Echo\n}\n```\nEchoLambdaALB makes it easy to send ALB proxy events to a echo.Echo. 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 NewALB(e *echo.Echo) *EchoLambdaALB\n```\nNewAPI creates a new instance of the EchoLambdaAPI object. Receives an initialized \\*echo.Echo object - normally created with echo.New(). It returns the initialized instance of the EchoLambdaALB object.\n\n```go\nfunc (e *EchoLambdaALB) Proxy(req events.ALBTargetGroupRequest) (events.ALBTargetGroupResponse, error)\n```\nProxy receives an ALB event, transforms it 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 (e *EchoLambdaALB) ProxyWithContext(ctx context.Context, req events.ALBTargetGroupRequest) (events.ALBTargetGroupResponse, error)\n```\nProxyWithContext receives context and an ALB 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\ntype EchoLambdaV2 struct {\n\tcore.RequestAccessorV2\n\n\tEcho *echo.Echo\n}\n```\nEchoLambdaV2 makes it easy to send API Gateway proxy V2 events to a echo.Echo. 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 NewV2(e *echo.Echo) *EchoLambdaV2\n```\nNewV2 creates a new instance of the EchoLambda object. Receives an initialized \\*echo.Echo object - normally created with echo.New(). It returns the initialized instance of the EchoLambdaV2 object.\n\n```go\nfunc (e *EchoLambdaV2) Proxy(req events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)\n```\nProxy receives an API Gateway proxy V2 event, transforms it 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 (e *EchoLambdaV2) ProxyWithContext(ctx context.Context, req events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)\n```\nProxyWithContext receives context and an API Gateway proxy V2 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","path":"github.com/hithereco/aws-lambda-go-api-proxy/echo","name":"echoadapter","synopsis":"Packge echolambda add Echo support for the aws-severless-go-api library.","isRedistributable":true}
