Discover Packages
github.com/kilnfi/go-utils
net
jsonrpc
package
Version:
v0.3.4
Opens a new window with list of versions in this module.
Published: Jul 19, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
WithIncrementalID automatically increments JSON-RPC request ID
WithVersion automatically set JSON-RPC request version
type ErrorMsg struct {
Code int `json:"code"`
Message string `json:"message"`
Data *json .RawMessage `json:"data,omitempty"`
}
ErrorMsg is a struct allowing to encode/decode a JSON-RPC response body
type Request struct {
Version string
Method string
ID interface{}
Params interface{}
}
Request allows to manipulate a JSON-RPC request
Source Files
¶
Directories
¶
Package jsonrpctestutils is a generated GoMock package.
Package jsonrpctestutils is a generated GoMock package.
Click to show internal directories.
Click to hide internal directories.