Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
func Start[E any](handler Handler[E], middlewares []middleware.NoResponse[E], sigTermCallbacks ...func())
Start initiates a lambda container for a handler and middleware of events that do not return a response. sigTermCallbacks are callbacks to be triggered when the lambda container is closed.
func StartWithResponse ¶
func StartWithResponse[E, R any](handler HandlerWithResponse[E, R], middlewares []middleware.WithResponse[E, R], sigTermCallbacks ...func())
StartWithResponse initiates a lambda container for a handler and middleware of events that return a response type R. sigTermCallbacks are callbacks to be triggered when the lambda container is closed.
Types ¶
Click to show internal directories.
Click to hide internal directories.