Documentation ¶
Overview ¶
The Front package routes HTTP requests to an appropriately routed handler and returns a response whose Body member is a JSON-encoded API object. In case of error it will be a JSON-encoded ApiErrorBody.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Front ¶
type Front struct {
// contains filtered or unexported fields
}
func (Front) Handler ¶
func (front Front) Handler(request events.APIGatewayProxyRequest) (response events.APIGatewayProxyResponse, err error)
Front.Handler takes an APIGatewayProxyRequest and returns an APIGatewayProxyResponse with an error which should be nil
Any downstream panic should be recovered and wrapped into an ApiErrorBody, and the trace logged
Click to show internal directories.
Click to hide internal directories.