Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Call calls a remote method over XML-RPC using the specified arguments. // It will return the remote methods result or an error. // // args is list of arguments to be passed to the remote method. Each element // of args is a single arg, where arg is either one of: // - bool // - int // - int8 // - int16 // - int32 // - float32 // - float64 // - string // - []byte // - []arg // - map[string]arg // - time.Time Call(methodName string, args ...interface{}) (Value, error) }
A Client is an XML-RPC client.
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error represents an error that was caused either by some violation of the XML-RPC specification or by an assumption made by this implementation turning out to be wrong.
type Fault ¶
type Fault struct {
// contains filtered or unexported fields
}
Fault represents an error that occurred on the remote during an XML-RPC call.
type Kind ¶
type Kind uint
Kind represents the specific kind of value that a Value wraps. The zero Kind represents an invalid Value.
type Member ¶
type Member interface { // Name returns the name of the struct's member. Name() string // Value returns the value of the struct's member. Value() Value }
Member represents a member in a struct.
type Value ¶
type Value interface { // Values returns the value's underlying value, as a slice. // It panics if the value's Kind is not Array. Values() []Value // Bytes returns the value's underlying value, as a slice of byte. // It panics if the value's Kind is not Base64. Bytes() []byte // Bool returns the value's underlying value, as a bool. // It panics if the value's Kind is not Bool. Bool() bool // Time returns the value's underlying value, as a time.Time. // It panics if the value's Kind is not DateTime. Time() time.Time // Double returns the value's underlying value, as a float64. // It panics if the value's Kind is not Double. Double() float64 // Int returns the value's underlying value, as an int. // It panics if the value's Kind is not Int. Int() int // String returns the value's underlying value, as a string. // It panics if the value's Kind is not String. String() string // Members returns the value's underlying value, as a slice of Member. // It panics if the value's Kind is not Struct. Members() []Member // Kind returns the specific type of this value. Kind() Kind }
Value is a wrapper around an actual XML-RPC value.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.