Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidAPIGatewayRequest = errors.New("gateway: invalid APIGateway request struct configured")
)
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway[T any] struct { // contains filtered or unexported fields }
Gateway wrap a http handler to enable use as a lambda.Handler
func New ¶
New creates a gateway using the provided http.Handler enabling use in existing aws-lambda-go projects
func (*Gateway[T]) GetInvoker ¶
GetInvoker returns the function that will be invoked by the lambda.Start call in main function. This funtion will be decorated or not depending on the options passed to the New function.
type Option ¶
type Option func(*options)
func WithDecorator ¶
func WithDefaultErrorHeaders ¶
func WithHTTPHandler ¶
func WithLogger ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.