operations

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorUnsupportedSchema = Error{
							// contains filtered or unexported fields
	}
	ErrorCantMarshal = Error{
						// contains filtered or unexported fields
	}
	ErrorCantUnMarshal = Error{
						// contains filtered or unexported fields
	}
	ErrorUnknownType = Error{
						// contains filtered or unexported fields
	}
	ErrorUnMarshalNotPTR = Error{
							// contains filtered or unexported fields
	}
	ErrorUnMarshalCantSet = Error{
							// contains filtered or unexported fields
	}
)

Functions

func IsErrorWithCode

func IsErrorWithCode(e interface{}, code int) bool

func Unmarshal

func Unmarshal(bArr []byte, e Element) error

Types

type Body

type Body struct {
	XMLName xml.Name
	Body    interface{}
}

func (*Body) SetForMarshal

func (b *Body) SetForMarshal()

type Element

type Element interface {
	SetForMarshal()
}

type EnvelopeRequest

type EnvelopeRequest struct {
	XMLName  xml.Name
	Soap     *Schema `xml:"xmlns:soap,attr"`
	Type     *Schema `xml:"xmlns:t,attr"`
	Messages *Schema `xml:"xmlns:m,attr"`
	Body     *Body
}

func NewEnvelopeMarshal

func NewEnvelopeMarshal(body interface{}, schemas ...*Schema) (*EnvelopeRequest, error)

func (*EnvelopeRequest) GetEnvelopeBytes

func (e *EnvelopeRequest) GetEnvelopeBytes() ([]byte, error)

func (*EnvelopeRequest) SetForMarshal

func (e *EnvelopeRequest) SetForMarshal()

type Error

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

func (*Error) Error

func (e *Error) Error() string

type Schema

type Schema string
const (
	SchemaSOAP     Schema = `http://schemas.xmlsoap.org/soap/envelope/`
	SchemaTypes    Schema = `http://schemas.microsoft.com/exchange/services/2006/types`
	SchemaMessages Schema = `http://schemas.microsoft.com/exchange/services/2006/messages`
)

Jump to

Keyboard shortcuts

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