-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: jsonrpc2.0 move into the comm module
Signed-off-by: Vincenzo Palazzo <[email protected]>
- Loading branch information
1 parent
c0e6cc0
commit 221767c
Showing
4 changed files
with
24 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package jsonrpcv2 | ||
|
||
type Request struct { | ||
Method string `json:"method"` | ||
Params map[string]any `json:"params"` | ||
Jsonrpc string `json:"jsonrpc"` | ||
Id *int `json:"id"` | ||
} | ||
|
||
type Response struct { | ||
Result map[string]any `json:"result"` | ||
Error map[string]any `json:"error"` | ||
Jsonrpc string `json:"jsonrpc"` | ||
Id *int `json:"id"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters