xmlrpc

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTimeout int = 5

Functions

func Request

func Request(url string, method string, params ...interface{}) []interface{}

func Serialize

func Serialize(method string, params []interface{}) string

func Unserialize

func Unserialize(buffer io.ReadCloser) []interface{}

Types

type Member

type Member struct {
	Name  string `xml:"name"`
	Value Value  `xml:"value"`
}

type MethodResponse

type MethodResponse struct {
	Params []Param `xml:"params>param"`
}

type Param

type Param struct {
	Value Value `xml:"value"`
}

type Value

type Value struct {
	List     []Value  `xml:"array>data>value"`
	Object   []Member `xml:"struct>member"`
	String   string   `xml:"string"`
	Int      string   `xml:"int"`
	Boolean  string   `xml:"boolean"`
	DateTime string   `xml:"dateTime.iso8601"`
	Base64   string   `xml:"base64"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL