Documentation ¶
Overview ¶
Package xmlrpc provide an implementation of XML-RPC specification, http://xmlrpc.com/spec.md.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for XML-RPC.
type Kind ¶
type Kind int
Kind define the known type in Value.
This is looks like the reflect.Kind but limited only to specific types defined in XML-RPC.
const ( Unset Kind = iota String // represent Go string type. Boolean // represent Go bool type. Integer // represent Go int8, int16, int32, uint8, and uint16 types. Double // represent Go int64, uint8, uint16, uint32, uint64, float32, and float64 types. DateTime // represent Go time.Time type. Base64 // represent Go string type. Struct // represent Go struct type. Array // represent Go array and slice types. )
type Request ¶
func NewRequest ¶
NewRequest create and initialize new request.
func (Request) MarshalText ¶
MarshalText implement the encoding.TextMarshaler interface.
type Response ¶
func (*Response) UnmarshalText ¶
type Value ¶
type Value struct { Kind Kind // In contains scalar value for Base64, Boolean, Double, Integer, // String, and DateTime. // It would be nil for Kind of Array and Struct. In interface{} Members []Member // List of struct's member. Values []Value // List of array's items. }
Value represent dynamic value of XML-RPC type.
func NewValue ¶
func NewValue(in interface{}) (out *Value)
NewValue convert Go type data into XML-RPC value.
func (Value) GetFieldAsFloat ¶
GetFieldAsFloat get struct's field value by name as float64.
func (Value) GetFieldAsInteger ¶
GetFieldAsInteger get struct's field value by name as int32.
func (Value) GetFieldAsString ¶
GetFieldAsString get struct's field value by name as string.