Documentation ¶
Index ¶
- func GetSourceEvent(ctx context.Context) any
- func NewAPIGatewayV1Handler(adapter AdapterFunc) ...
- func NewAPIGatewayV2Handler(adapter AdapterFunc) ...
- func NewFunctionURLHandler(adapter AdapterFunc) ...
- func NewFunctionURLStreamingHandler(adapter AdapterFunc) ...
- func NewHandler[In any, Out any](handlerFunc HandlerFunc[In, Out], adapter AdapterFunc) func(context.Context, In) (Out, error)
- func WrapWithRecover[In any, Out any](handler func(context.Context, In) (Out, error), ...) func(context.Context, In) (Out, error)
- type AdapterFunc
- type HandlerFunc
- type RecoverFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSourceEvent ¶
func NewAPIGatewayV1Handler ¶
func NewAPIGatewayV1Handler(adapter AdapterFunc) func(context.Context, events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
func NewAPIGatewayV2Handler ¶
func NewAPIGatewayV2Handler(adapter AdapterFunc) func(context.Context, events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
func NewFunctionURLHandler ¶
func NewFunctionURLHandler(adapter AdapterFunc) func(context.Context, events.LambdaFunctionURLRequest) (events.LambdaFunctionURLResponse, error)
func NewFunctionURLStreamingHandler ¶ added in v0.2.0
func NewFunctionURLStreamingHandler(adapter AdapterFunc) func(context.Context, events.LambdaFunctionURLRequest) (*events.LambdaFunctionURLStreamingResponse, error)
func NewHandler ¶
func NewHandler[In any, Out any](handlerFunc HandlerFunc[In, Out], adapter AdapterFunc) func(context.Context, In) (Out, error)
Types ¶
type AdapterFunc ¶
type HandlerFunc ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.