Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func EncodeMethodCall ¶
Types ¶
type Client ¶
func NewClient ¶
func NewClient(requrl string, transport http.RoundTripper) (*Client, error)
NewClient returns instance of rpc.Client object, that is used to send request to xmlrpc service.
func (Client) Multicall ¶
func (c Client) Multicall(calls []MulticallArg, outs ...interface{}) error
Multicall performs a multicall request. `calls` should be constructed with `NewMulticallArg` and `outs` must be a slice of pointers. If the response contains at least one fault, the first is returned as a `MulticallFault` error.
type FaultError ¶
FaultError is returned from the server when an invalid call is made
type MulticallArg ¶
type MulticallArg struct { MethodName string `xmlrpc:"methodName"` Params []interface{} `xmlrpc:"params"` // 1-sized list containing the real arguments }
MulticallArg stores one call
func NewMulticallArg ¶
func NewMulticallArg(method string, args interface{}) MulticallArg
type MulticallFault ¶
type MulticallFault struct { FaultError Index int // 0 based // contains filtered or unexported fields }
MulticallFault tracks the position of the fault.
func (MulticallFault) Error ¶
func (m MulticallFault) Error() string
type TypeMismatchError ¶
type TypeMismatchError string
func (TypeMismatchError) Error ¶
func (e TypeMismatchError) Error() string
Click to show internal directories.
Click to hide internal directories.