Discover Packages
github.com/chenguolin/go-common
rpc
package
Version:
v1.1.4
Opens a new window with list of versions in this module.
Published: Feb 3, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Client struct {
Server string `json:"server"`
User string `json:"usre"`
Password string `json:"password"`
}
Client json-rpc client
SetAuth set rpc auth user and password
type Request struct {
JSONRPC string `json:"jsonrpc"`
Method string `json:"method"`
Params interface{} `json:"params"`
ID int `json:"id"`
}
Request json-rpc request struct
type Response struct {
JSONRPC string `json:"jsonrpc"`
ID int `json:"id"`
Result interface{} `json:"result,omitempty"`
Error *responseError `json:"error,omitempty"`
}
Response json-rpc response struct
Source Files
¶
Click to show internal directories.
Click to hide internal directories.