Documentation ¶
Index ¶
- Constants
- Variables
- func ErrEq(a, b error) bool
- func Errorf2(err error, format string, a ...interface{}) error
- func Marshal(w io.Writer, name string, args ...interface{}) (err error)
- func SetLogger(lgr *log.Logger) *log.Logger
- func WriteXML(w io.Writer, v interface{}, typ bool) (err error)
- type Client
- type Fault
Constants ¶
View Source
const ( // FullXMLRpcTime is the format of a full XML-RPC time FullXMLRpcTime = "2006-01-02T15:04:05-07:00" // LocalXMLRpcTime is the XML-RPC time without timezone LocalXMLRpcTime = "2006-01-02T15:04:05" // DenseXMLRpcTime is a dense-formatted local time DenseXMLRpcTime = "20060102T15:04:05" // DummyXMLRpcTime is seen in the wild DummyXMLRpcTime = "20060102T15:04:05-0700" )
/ ISO8601 is not very much restrictive, so many combinations exist
Variables ¶
View Source
var ErrUnsupported = errors.New("Unsupported type")
ErrUnsupported is the error of "Unsupported type"
Functions ¶
func Marshal ¶
Marshal marshals the named thing (methodResponse if name == "", otherwise a methodCall) into the w Writer
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements a basic XMLRPC client
func NewClient ¶
NewClient returns a new instance of Client Pass in a true value for `insecure` to turn off certificate verification
func NewClientWithHTTPClient ¶ added in v0.5.0
NewClientWithHTTPClient returns a new instance of Client. This allows you to use a custom http.Client setup for your needs.
Click to show internal directories.
Click to hide internal directories.