|
|
@ -45,18 +45,18 @@ type status string
|
|
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
const (
|
|
|
|
statusSuccess status = "success"
|
|
|
|
statusSuccess status = "success"
|
|
|
|
statusError = "error"
|
|
|
|
statusError status = "error"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type errorType string
|
|
|
|
type errorType string
|
|
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
const (
|
|
|
|
errorNone errorType = ""
|
|
|
|
errorNone errorType = ""
|
|
|
|
errorTimeout = "timeout"
|
|
|
|
errorTimeout errorType = "timeout"
|
|
|
|
errorCanceled = "canceled"
|
|
|
|
errorCanceled errorType = "canceled"
|
|
|
|
errorExec = "execution"
|
|
|
|
errorExec errorType = "execution"
|
|
|
|
errorBadData = "bad_data"
|
|
|
|
errorBadData errorType = "bad_data"
|
|
|
|
errorInternal = "internal"
|
|
|
|
errorInternal errorType = "internal"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
var corsHeaders = map[string]string{
|
|
|
|
var corsHeaders = map[string]string{
|
|
|
|