Documentation ¶
Index ¶
- func GetAPIGatewayProxyResponse200(body interface{}) (events.APIGatewayProxyResponse, error)
- func GetAPIGatewayProxyResponse204() (events.APIGatewayProxyResponse, error)
- func GetAPIGatewayProxyResponse400(error interface{}) (events.APIGatewayProxyResponse, error)
- func GetAPIGatewayProxyResponse404(error interface{}) (events.APIGatewayProxyResponse, error)
- func GetAPIGatewayProxyResponse500(error interface{}) (events.APIGatewayProxyResponse, error)
- type APIGatewayProxyResponseError
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAPIGatewayProxyResponse200 ¶
func GetAPIGatewayProxyResponse200(body interface{}) (events.APIGatewayProxyResponse, error)
GetAPIGatewayProxyResponse200 ... send sucess with body (stringyfied JSON)
func GetAPIGatewayProxyResponse204 ¶
func GetAPIGatewayProxyResponse204() (events.APIGatewayProxyResponse, error)
GetAPIGatewayProxyResponse204 ... send sucess without body
func GetAPIGatewayProxyResponse400 ¶
func GetAPIGatewayProxyResponse400(error interface{}) (events.APIGatewayProxyResponse, error)
GetAPIGatewayProxyResponse400 ... send Bad Request and log error
func GetAPIGatewayProxyResponse404 ¶ added in v1.1.0
func GetAPIGatewayProxyResponse404(error interface{}) (events.APIGatewayProxyResponse, error)
GetAPIGatewayProxyResponse404 ... send Not Found and log error
func GetAPIGatewayProxyResponse500 ¶
func GetAPIGatewayProxyResponse500(error interface{}) (events.APIGatewayProxyResponse, error)
GetAPIGatewayProxyResponse500 ... send Internal Server Error and log error
Types ¶
type APIGatewayProxyResponseError ¶
type APIGatewayProxyResponseError struct {
Message string `json:"message"`
}
APIGatewayProxyResponseError ... basic structure of error
Click to show internal directories.
Click to hide internal directories.