Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CORS_HEADERS = map[string]string{
"Access-Control-Allow-Headers": "Content-Type,X-Amz-Date,X-Amz-Security-Token,Authorization,X-Api-Key,X-Requested-With,Accept,Access-Control-Allow-Methods,Access-Control-Allow-Origin,Access-Control-Allow-Headers",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT",
"Access-Control-Allow-Credentials": "true",
"X-Requested-With": "*",
}
Functions ¶
func HandleError ¶
func HandleError(status int32, errorMsg string) (events.APIGatewayProxyResponse, error)
func HandleSuccess ¶
func HandleSuccess(code int, body string) (events.APIGatewayProxyResponse, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.