cic-custodial/internal/api/types.go
Mohammed Sohail a47e44f262
refactor: use sigChan for shutdown, ctx fixes
* refactor main entry point for starting services
* minor fixes around ctx propagation
* improve otx marker js subscriber
2023-03-02 15:46:02 +00:00

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"`
}