cic-custodial/internal/api/types.go

19 lines
341 B
Go
Raw Normal View History

2022-11-30 10:51:24 +01:00
package api
const (
INTERNAL = "ERR_INTERNAL"
KEYPAIR_ERROR = "ERR_GEN_KEYPAIR"
JSON_MARSHAL = "ERR_PAYLOAD_SERIALIZATION"
TASK_CHAIN = "ERR_START_TASK_CHAIN"
)
type okResp struct {
Ok bool `json:"ok"`
Data interface{} `json:"data"`
}
type errResp struct {
Ok bool `json:"ok"`
Error string `json:"error"`
}