xmlrpc

package
v0.0.0-...-6e5b399 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Overview

Package xmlrpc implements the XML-RPC client library.

Package xmlrpc implements the XML-RPC client library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PackArgsToXMLRPCValues

func PackArgsToXMLRPCValues(values ...interface{}) []*xmlrpc.Value

PackArgsToXMLRPCValues packs values to XMLRPC structs.

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(timeout time.Duration, method string, args ...interface{}) Call

NewCallTimeout creates a XML-RPC call.

type FaultError

type FaultError struct {
	Code   int
	Reason string
}

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

func NewFaultError

func NewFaultError(code int, reason string) FaultError

NewFaultError creates a FaultError.

func (FaultError) Error

func (e FaultError) Error() string

Error represent error message generation.

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) Addr

func (r *XMLRpc) Addr() string

Addr provides address used to connect.

func (*XMLRpc) Run

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

Run makes an XML-RPC call to the server.

func (*XMLRpc) RunOnCloudBots

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

RunOnCloudBots makes an XML-RPC call on the cloudbots gateway server.

Jump to

Keyboard shortcuts

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