response

package
v0.0.0-...-bb933ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2022 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL