aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/message.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-02-11 18:56:29 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-02-11 18:56:29 +0800
commitd613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9 (patch)
treee7d6589314ec1490c45adb2ac5b94423a250eb06 /rpc/message.go
parentcfddb7f3cd3b8cecb1e59412ce4db5769f6c8007 (diff)
downloaddexon-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.tar
dexon-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.tar.gz
dexon-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.tar.bz2
dexon-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.tar.lz
dexon-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.tar.xz
dexon-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.tar.zst
dexon-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.zip
#295 Allow RPC ID to be string
Diffstat (limited to 'rpc/message.go')
-rw-r--r--rpc/message.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/message.go b/rpc/message.go
index 78dc6e2ff..7983e003d 100644
--- a/rpc/message.go
+++ b/rpc/message.go
@@ -34,20 +34,20 @@ const (
)
type RpcRequest struct {
+ ID interface{} `json:"id"`
JsonRpc string `json:"jsonrpc"`
- ID int `json:"id"`
Method string `json:"method"`
Params []json.RawMessage `json:"params"`
}
type RpcSuccessResponse struct {
- ID int `json:"id"`
+ ID interface{} `json:"id"`
JsonRpc string `json:"jsonrpc"`
Result interface{} `json:"result"`
}
type RpcErrorResponse struct {
- ID *int `json:"id"`
+ ID interface{} `json:"id"`
JsonRpc string `json:"jsonrpc"`
Error *RpcErrorObject `json:"error"`
}