mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-22 22:26:46 +01:00
Mohammed Sohail
a47e44f262
* refactor main entry point for starting services * minor fixes around ctx propagation * improve otx marker js subscriber
20 lines
281 B
Go
20 lines
281 B
Go
package api
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrInvalidJSON = errors.New("Invalid JSON structure.")
|
|
)
|
|
|
|
type H map[string]any
|
|
|
|
type OkResp struct {
|
|
Ok bool `json:"ok"`
|
|
Result H `json:"result"`
|
|
}
|
|
|
|
type ErrResp struct {
|
|
Ok bool `json:"ok"`
|
|
Message string `json:"message"`
|
|
}
|