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