Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Call(method string, params ...interface{}) (*Response, error) LocalIP() (string, error) }
Client interface for XML RPC client
type Option ¶
type Option func(client *client)
Option defines a function that configures a Client by mutating it
func HttpClient ¶
HttpClient option allows setting custom HTTP Client
type Request ¶
type Request struct { Method string Params []interface{} }
Request for XML RPCs
func (Request) MarshalXML ¶
MarshalXML convert request to XML
type Response ¶
type Response struct { Params []interface{} Fault *Fault }
Response of XML RPCs
func (*Response) DecodeParam ¶
DecodeParam to the given value
func (*Response) FirstParam ¶
func (r *Response) FirstParam() interface{}
FirstParam returns the first parameter or nil
func (*Response) MarshalXML ¶
MarshalXML convert response to XML
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server for XML RPC events
Click to show internal directories.
Click to hide internal directories.