aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2022-10-15 13:36:51 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2022-10-15 13:36:51 +0200
commitda86a08d1f27cfb1c4a53cebedfdeec9f8ed36c1 (patch)
treec1188caeb01acc4bdd8fa1205c850992ae31ef65
parentfd4a557e9d14ddc5bd2ec117cac3db2183c6c988 (diff)
make rpcCall JSON compatible
-rw-r--r--call.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/call.go b/call.go
index d2391f7..227950b 100644
--- a/call.go
+++ b/call.go
@@ -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{}