Documentation ¶
Overview ¶
The Front package routes HTTP requests to an appropriately routed handler bound to ReelIndexer and JsonHydrator instances 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)
Receive a APIGatewayProxyRequest and returns a APIGatewayProxyResponse with nil error
Any panic should be recovered and wrapped into an ApiErrorBody, and the trace logged
type FrontHandler ¶
type FrontHandler func(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
Click to show internal directories.
Click to hide internal directories.