Implementation of XMLRPC protocol in Go language.
Перейти к файлу
Dmitry Maksimov da7984a023 Use http.DefaultTransport as default transport 2014-03-10 09:29:15 +04:00
LICENSE [#1] Added license file 2012-11-05 10:05:32 +04:00
README.md Update README.md 2013-12-08 21:20:42 +01:00
client.go Use http.DefaultTransport as default transport 2014-03-10 09:29:15 +04:00
client_test.go Check response status 2014-03-09 14:44:17 +04:00
decoder.go Add base64 type support 2014-03-09 14:31:33 +04:00
decoder_test.go Add base64 type support 2014-03-09 14:31:33 +04:00
encoder.go Add base64 type support 2014-03-09 14:31:33 +04:00
encoder_test.go Add base64 type support 2014-03-09 14:31:33 +04:00
request.go Code cleanup 2014-03-09 14:31:33 +04:00
response.go Decode server result to Go data types 2014-03-09 14:31:33 +04:00
response_test.go More tests 2014-03-09 14:31:33 +04:00
test_server.rb More tests 2014-03-09 14:31:33 +04:00
xmlrpc.go Check response status 2014-03-09 14:44:17 +04:00

README.md

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/xmlrpc" 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)