Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NullRpcRequest ¶
type NullRpcRequest struct { }
type SimpleRpcResponse ¶
type SimpleRpcResponse struct {
Code int `json:"code"`
}
code == 0 => success code == 1 => bad request
func (*SimpleRpcResponse) String ¶
func (u *SimpleRpcResponse) String() string
type SingleConnRpcClient ¶
type SingleConnRpcClient struct { sync.Mutex RpcServer string Timeout time.Duration // contains filtered or unexported fields }
func (*SingleConnRpcClient) Call ¶
func (u *SingleConnRpcClient) Call(method string, args interface{}, reply interface{}) error
func (*SingleConnRpcClient) Close ¶
func (u *SingleConnRpcClient) Close()
Click to show internal directories.
Click to hide internal directories.