Implementation of XMLRPC protocol in Go language.
Перейти к файлу
Dmitry Maksimov eabe37780b [#1] Added license file 2012-11-05 10:05:32 +04:00
LICENSE [#1] Added license file 2012-11-05 10:05:32 +04:00
README.md Added README 2012-09-21 13:31:42 +04:00
client.go Cookies not updated when they already exist. Added support of Array value type. 2012-09-19 16:51:30 +04:00
client_test.go NewClient function accepts transport parameter. 2012-09-19 12:47:01 +04:00
request.go String values escaped before inserting into request xml 2012-09-26 13:35:55 +04:00
request_test.go String values escaped before inserting into request xml 2012-09-26 13:35:55 +04:00
response.go Cookies received in last request, used to send the next. 2012-09-19 13:07:34 +04:00
response_test.go NewClient function accepts transport parameter. 2012-09-19 12:47:01 +04:00
result.go Cookies not updated when they already exist. Added support of Array value type. 2012-09-19 16:51:30 +04:00
result_test.go Initial commit 2012-09-18 10:10:35 +04:00
xmlrpc.go Introduced own Client type to hide rpc.Client from package users 2012-09-19 13:14:04 +04:00
xmlrpc_server.rb Added codecClient type, that can be used with rpc package from standard library 2012-09-18 17:09:38 +04:00
xmlrpc_test.go NewClient function accepts transport parameter. 2012-09-19 12:47:01 +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/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)