xmlrpc

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package xmlrpc implements the XML-RPC client library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Call

type Call struct {
	// contains filtered or unexported fields
}

Call represents a XML-RPC call request.

func NewCall

func NewCall(method string, args ...interface{}) Call

NewCall creates a XML-RPC call.

func NewCallTimeout

func NewCallTimeout(method string, timeout time.Duration, args ...interface{}) Call

NewCallTimeout creates a XML-RPC call.

type FaultError

type FaultError struct {
	Code   int
	Reason string

	// Including *errors.E allows FaultError to work with the Tast errors library.
	*errors.E
}

FaultError is a type of error representing an XML-RPC fault.

func NewFaultError

func NewFaultError(code int, reason string) FaultError

NewFaultError creates a FaultError.

type XMLRpc

type XMLRpc struct {
	// contains filtered or unexported fields
}

XMLRpc holds the XML-RPC information.

func New

func New(host string, port int) *XMLRpc

New creates a new XMLRpc object for communicating with XML-RPC server.

func (*XMLRpc) Run

func (r *XMLRpc) Run(ctx context.Context, cl Call, out ...interface{}) error

Run makes an XML-RPC call to the server.

Jump to

Keyboard shortcuts

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