{"modulePath":"github.com/toff63/lambda-http-adapter","version":"v0.0.0-20190815162438-272c652949fa","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package echoadapter\n\nPackage echoadapter add Echo support for the 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 Adapted from [https://github.com/awslabs/aws-lambda-go-api-proxy/blob/19825165bd2fce09ee70ddbd1d4a9a1f710d64a4/echo/adapter.go](https://github.com/awslabs/aws-lambda-go-api-proxy/blob/19825165bd2fce09ee70ddbd1d4a9a1f710d64a4/echo/adapter.go) to support ALB\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) ProxyWithContext(ctx context.Context, req events.ALBTargetGroupRequest) (events.ALBTargetGroupResponse, 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","path":"github.com/toff63/lambda-http-adapter/echo","name":"echoadapter","synopsis":"Package echoadapter add Echo support for the library.","isRedistributable":true}
