Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter 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.
func NewAdapter ¶
func NewAdapter(handler jsonapi.RequestHandler, options ...func(*jsonapi.H)) Adapter
NewAdapter creates a new Adapter with the provided jsonapi handler.
func NewAdapterV2 ¶
func NewAdapterV2(handler jsonapi.RequestHandler, options ...func(*jsonapi.H)) Adapter
NewAdapterV2 creates a new Adapter with the provided jsonapi handler.
func (Adapter) Handler ¶
func (a Adapter) Handler(ctx context.Context, request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
Handler 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.
func (Adapter) HandlerV2 ¶
func (a Adapter) HandlerV2(ctx context.Context, request events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
HandlerV2 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.