Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the application to run a HTTP service with AWS Lambda and AWS APIGateway.
func Default ¶
func Default() *App
Default creates and returns a new instance with the default config.
type Config ¶
type Config struct { // Context is the base context of the application. Context context.Context // ContextValues are the values in the handler context. If a base context was set, the context is // used as the parent. ContextValues map[any]any // ResponseEscapeHTML indicates whether the HTML in the response is escaped or not. ResponseEscapeHTML bool // SIGTERMCallbacks are the callback functions to run on SIGTERM, and it will enable the Lambda // SIGTERM behavior if the callbacks are not empty. SIGTERMCallbacks []func() }
Click to show internal directories.
Click to hide internal directories.