Documentation
¶
Index ¶
- func BadRequest(msg string) *events.APIGatewayProxyResponse
- func Created() *events.APIGatewayProxyResponse
- func InternalServerError(msg string) *events.APIGatewayProxyResponse
- func NewMultiEventTypeHandler(fn multiEventTypeHandlerFn) lambda.Handler
- func NoContent() *events.APIGatewayProxyResponse
- func NotFound(msg string) *events.APIGatewayProxyResponse
- func OkText(msg string) (*events.APIGatewayProxyResponse, error)
- func Redirect(to string) events.APIGatewayProxyResponse
- func RespondJson(out interface{}) (*events.APIGatewayProxyResponse, error)
- func ServeApiGatewayProxyRequestUsingHttpHandler(ctx context.Context, proxyRequest *events.APIGatewayProxyRequest, ...) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func BadRequest(msg string) *events.APIGatewayProxyResponse
func Created ¶
func Created() *events.APIGatewayProxyResponse
func InternalServerError ¶
func InternalServerError(msg string) *events.APIGatewayProxyResponse
func NoContent ¶
func NoContent() *events.APIGatewayProxyResponse
func NotFound ¶
func NotFound(msg string) *events.APIGatewayProxyResponse
func Redirect ¶
func Redirect(to string) events.APIGatewayProxyResponse
func RespondJson ¶
func RespondJson(out interface{}) (*events.APIGatewayProxyResponse, error)
func ServeApiGatewayProxyRequestUsingHttpHandler ¶
func ServeApiGatewayProxyRequestUsingHttpHandler( ctx context.Context, proxyRequest *events.APIGatewayProxyRequest, httpHandler http.Handler, ) ([]byte, error)
github.com/akrylysov/algnhsa has similar implementation than apex/gateway, but had the useful bits non-exported and it used httptest for production code
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.