mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-24 15:06:45 +01:00
Mohammed Sohail
add7f2a442
* use context timeout middleware for correct ctx propagation * Fix bind error handling * Fix validation error handling * Fix HTTP error handling (4XX) * tasker client now accepts ctx * add recovery and body size middleware
14 lines
199 B
Go
14 lines
199 B
Go
package api
|
|
|
|
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"`
|
|
}
|