types

package
Version: v0.0.0-...-95245e9 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fault

type Fault struct {
	XMLName     xml.Name `xml:"fault"`
	FaultCode   int      `xmlrpc:"faultCode"`
	FaultString string   `xmlrpc:"faultString"`
}

func (*Fault) MarshalXML

func (f *Fault) MarshalXML(e *xml.Encoder, _ xml.StartElement) (err error)

TODO(ankit): This might not be required, validate it.

type MethodCall

type MethodCall struct {
	XMLName    xml.Name `xml:"methodCall"`
	MethodName string   `xml:"methodName"`
	Params     []Param  `xml:"params>param"`
	// contains filtered or unexported fields
}

func (*MethodCall) Decode

func (mc *MethodCall) Decode(_ []byte, paramTypes ...interface{}) error

func (*MethodCall) Encode

func (mc *MethodCall) Encode(indent bool) ([]byte, error)

type MethodResponse

type MethodResponse struct {
	XMLName xml.Name `xml:"methodResponse"`
	Fault   *Fault   `xml:"fault,omitempty"`
	Params  []Param  `xml:"params>param,omitempty"`
	// contains filtered or unexported fields
}

func (*MethodResponse) Decode

func (mr *MethodResponse) Decode(data []byte, paramType interface{}) error

func (*MethodResponse) Encode

func (mr *MethodResponse) Encode(indent bool) ([]byte, error)

type Param

type Param struct {
	XMLName xml.Name `xml:"param"`
	Value   Value    `xml:"value"`
}

type Value

type Value struct {
	Data interface{}
}

func (*Value) MarshalXML

func (v *Value) MarshalXML(e *xml.Encoder, _ xml.StartElement) error

Jump to

Keyboard shortcuts

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