jsonapilambda

package module
v0.0.0-...-6993a19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 4 Imported by: 0

README

jsonapi-aws-lambda

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

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

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.

type Options

type Options = func(*Adapter)

Options functions configure the Adapter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL