Documentation
¶
Index ¶
- func Decode(r io.Reader, v any) error
- func DecodeBytes(xml []byte, v any) error
- func DecodeString(xml string, v any) error
- func Encode(v any) ([]byte, error)
- func EncodeMethodCall(w io.Writer, method string, args ...any) error
- func IsFaultError(err error) bool
- func IsHTTPError(err error) bool
- type Client
- type Decoder
- type Encoder
- type FaultError
- type HTTPError
- type TypeMismatchError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBytes ¶
func DecodeString ¶
func IsFaultError ¶
func IsHTTPError ¶
Types ¶
type Client ¶
type Decoder ¶
func NewDecoder ¶
type FaultError ¶
type FaultError struct {
Method string `xmlrpc:"-"`
FaultCode int `xmlrpc:"faultCode"`
FaultString string `xmlrpc:"faultString"`
}
FaultError is returned from the server when an invalid call is made
func AsFaultError ¶
func AsFaultError(err error) (fe *FaultError, ok bool)
func (FaultError) Error ¶
func (fe FaultError) Error() string
type HTTPError ¶
func AsHTTPError ¶
type TypeMismatchError ¶
type TypeMismatchError string
func (TypeMismatchError) Error ¶
func (e TypeMismatchError) Error() string
Click to show internal directories.
Click to hide internal directories.