Documentation ¶
Index ¶
- Variables
- func HttpResponseBadRequest(message string, data interface{}) (*events.APIGatewayProxyResponse, error)
- func HttpResponseCreated() (*events.APIGatewayProxyResponse, error)
- func HttpResponseInternalServerError(message string) (*events.APIGatewayProxyResponse, error)
- func HttpResponseMethodNotAllowed() (*events.APIGatewayProxyResponse, error)
- func HttpResponseNotFound() (*events.APIGatewayProxyResponse, error)
- func HttpResponseOK(body interface{}) (*events.APIGatewayProxyResponse, error)
- func ValidateRequestInput(s interface{}) []error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnexpected = "unexpected error"
Functions ¶
func HttpResponseBadRequest ¶
func HttpResponseBadRequest(message string, data interface{}) (*events.APIGatewayProxyResponse, error)
func HttpResponseCreated ¶
func HttpResponseCreated() (*events.APIGatewayProxyResponse, error)
func HttpResponseInternalServerError ¶
func HttpResponseInternalServerError(message string) (*events.APIGatewayProxyResponse, error)
func HttpResponseMethodNotAllowed ¶
func HttpResponseMethodNotAllowed() (*events.APIGatewayProxyResponse, error)
func HttpResponseNotFound ¶
func HttpResponseNotFound() (*events.APIGatewayProxyResponse, error)
func HttpResponseOK ¶
func HttpResponseOK(body interface{}) (*events.APIGatewayProxyResponse, error)
func ValidateRequestInput ¶
func ValidateRequestInput(s interface{}) []error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.