Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONClient ¶
type JSONClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(prefix, url string) (*JSONClient, error)
func NewJSONClient ¶
func NewJSONClient(url string) (*JSONClient, error)
func (*JSONClient) Call ¶
func (client *JSONClient) Call(method string, params, resp interface{}) error
type RpcCtx ¶
type RpcCtx struct { Addr string Method string Params interface{} Res interface{} // contains filtered or unexported fields }
TODO: SetPostRunCb()
func (*RpcCtx) RunWithoutMarshal ¶
func (c *RpcCtx) RunWithoutMarshal()
func (*RpcCtx) SetResultCb ¶
Click to show internal directories.
Click to hide internal directories.