xmlrpc

package
v0.0.0-...-8462f15 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2014 License: Apache-2.0, MIT Imports: 11 Imported by: 0

README

Overview

xmlrpc is an implementation of XMLRPC protocol in Go language. Currently it implements only client side part of XMLRPC.

Installation

To install xmlrpc package run go get github.com/kolo/xmlrpc. To use it in application add "github.com/kolo/xmlprc" string to import statement.

Usage

client, _ := xmlrpc.NewClient("https://bugzilla.mozilla.org/xmlrpc.cgi", nil)
result := xmlrpc.Struct{}
client.Call("Bugzilla.version", nil, &result)
fmt.Printf("Version: %s\n", result["version"]) // Version: 4.0.8+

Second argument in is http.Transport object, it can be used to get more control over connection options.

Implementation details

xmlrpc package contains clientCodec type, that implements rpc.ClientCodec interface of net/rpc package.

Contribution

Feel free to fork the project, submit pull requests, ask questions.

Authors

Dmitry Maksimov (dmtmax@gmail.com)

Documentation

Index

Constants

View Source
const TIME_LAYOUT = "20060102T15:04:05"

TIME_LAYOUT defines time template defined by iso8601, used to encode/decode time values.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*rpc.Client
}

func NewClient

func NewClient(url string, transport *http.Transport) (*Client, error)

NewClient returns instance of rpc.Client object, that is used to send request to xmlrpc service.

type Params

type Params struct {
	Params []interface{}
}

Params represents a list of parameters to a method.

type Struct

type Struct map[string]interface{}

Struct presents hash type used in xmlprc requests and responses.

Jump to

Keyboard shortcuts

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