diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-18 04:40:05 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-18 04:40:05 +0800 |
commit | 142e81258cd7b77226d706c84f93da417aaaf426 (patch) | |
tree | 3b84c4139d100252512db487c33e2be57191e5d3 /rpc/messages.go | |
parent | 86661de07746cd4e4ad8d016afee9fa8074aa141 (diff) | |
parent | 048d4ec5be5352dcb06f5123e3458b99aa151e6b (diff) | |
download | dexon-142e81258cd7b77226d706c84f93da417aaaf426.tar dexon-142e81258cd7b77226d706c84f93da417aaaf426.tar.gz dexon-142e81258cd7b77226d706c84f93da417aaaf426.tar.bz2 dexon-142e81258cd7b77226d706c84f93da417aaaf426.tar.lz dexon-142e81258cd7b77226d706c84f93da417aaaf426.tar.xz dexon-142e81258cd7b77226d706c84f93da417aaaf426.tar.zst dexon-142e81258cd7b77226d706c84f93da417aaaf426.zip |
Merge branch 'develop' into conversion
Diffstat (limited to 'rpc/messages.go')
-rw-r--r-- | rpc/messages.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rpc/messages.go b/rpc/messages.go index 781394196..7f5ebab11 100644 --- a/rpc/messages.go +++ b/rpc/messages.go @@ -83,21 +83,21 @@ func NewValidationError(param string, msg string) error { } type RpcRequest struct { - ID interface{} `json:"id"` - JsonRpc string `json:"jsonrpc"` + Id interface{} `json:"id"` + Jsonrpc string `json:"jsonrpc"` Method string `json:"method"` Params json.RawMessage `json:"params"` } type RpcSuccessResponse struct { - ID interface{} `json:"id"` - JsonRpc string `json:"jsonrpc"` + Id interface{} `json:"id"` + Jsonrpc string `json:"jsonrpc"` Result interface{} `json:"result"` } type RpcErrorResponse struct { - ID interface{} `json:"id"` - JsonRpc string `json:"jsonrpc"` + Id interface{} `json:"id"` + Jsonrpc string `json:"jsonrpc"` Error *RpcErrorObject `json:"error"` } |