diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-10-15 13:36:51 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-10-15 13:36:51 +0200 |
commit | da86a08d1f27cfb1c4a53cebedfdeec9f8ed36c1 (patch) | |
tree | c1188caeb01acc4bdd8fa1205c850992ae31ef65 | |
parent | fd4a557e9d14ddc5bd2ec117cac3db2183c6c988 (diff) |
make rpcCall JSON compatible
-rw-r--r-- | call.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -8,8 +8,8 @@ import ( ) type rpcCall struct { - method string `json:"method"` - params any `json:"params,omitempty"` + Method string `json:"method"` + Params any `json:"params,omitempty"` } type Call interface { @@ -34,8 +34,8 @@ func (e *ErrUnexpectedStatus) Error() string { func (c *Client) Call(call Call) (*Response, error) { wrapped := &rpcCall{ - method: call.method(), - params: call, + Method: call.method(), + Params: call, } body := &bytes.Buffer{} |