Discover Packages
github.com/go-xlan/sui-go-guide
suirpcmsg
package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Dec 26, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type RpcError struct {
Code int `json:"code"`
Message string `json:"message"`
Data any `json:"data,omitempty"`
}
RpcError represents a JSON-RPC error-info.
type RpcRequest struct {
Jsonrpc string `json:"jsonrpc"`
Method string `json:"method"`
Params []any `json:"params"`
ID int `json:"id"`
}
RpcRequest represents a JSON-RPC request.
type RpcResponse[RES any ] struct {
Jsonrpc string `json:"jsonrpc"`
ID int `json:"id"`
Result RES `json:"result"`
Error *RpcError `json:"error,omitempty"`
}
RpcResponse represents a JSON-RPC response.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.