{"modulePath":"github.com/gonobo/jsonapi-aws-lambda","version":"v0.0.0-20240611155442-6993a19802a5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package jsonapilambda\n\n## Types\n\n```go\ntype Adapter struct {\n\t// contains filtered or unexported fields\n}\n```\nAdapter allows you to use a gibbon jsonapi handler as a lambda handler. It leverages the aws-lambda-go-api-proxy library to handle incoming API Gateway requests and forwards them to the provided jsonapi handler.\n\n```go\nfunc NewAdapter(handler jsonapi.RequestHandler, options ...func(*jsonapi.H)) Adapter\n```\nNewAdapter creates a new Adapter with the provided jsonapi handler.\n\n```go\nfunc NewAdapterV2(handler jsonapi.RequestHandler, options ...func(*jsonapi.H)) Adapter\n```\nNewAdapterV2 creates a new Adapter with the provided jsonapi handler.\n\n```go\nfunc (a Adapter) Handler(ctx context.Context, request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)\n```\nHandler handles incoming API Gateway requests. This method should be passed into the lambda.Start() function from the github.com/aws/aws-lambda-go/lambda package.\n\n```go\nfunc (a Adapter) HandlerV2(ctx context.Context, request events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)\n```\nHandlerV2 handles incoming API Gateway V2 requests. This method should be passed into the lambda.Start() function from the github.com/aws/aws-lambda-go/lambda package.\n\n```go\ntype Options = func(*Adapter)\n```\nOptions functions configure the Adapter.\n\n","path":"github.com/gonobo/jsonapi-aws-lambda","name":"jsonapilambda","synopsis":"","isRedistributable":true}
