dal/pkg/proto/response.go
Anton Nesterov 476afeac50
[wip] proto: validate against builder methods
Signed-off-by: Anton Nesterov <anton@demiurg.io>
2024-08-13 14:13:15 +02:00

15 lines
263 B
Go

package proto
//go:generate msgp
type RequestError struct {
Message string `msg:"msg"`
ErrorCode int `msg:"error_code"`
}
type Response struct {
Id uint32 `msg:"id"`
Result []interface{} `msg:"result"`
Error RequestError `msg:"error"`
}