gen

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectMessageType

func DetectMessageType(xmlData []byte) (messageType, version, messageName string, err error)

DetectMessageType attempts to detect the message type, version, and message name from XML data

func GetAvailableTypes

func GetAvailableTypes() []string

GetAvailableTypes returns a list of all available message types and versions

func GetRegisteredTypes

func GetRegisteredTypes() map[string]MessageTypeInfo

GetRegisteredTypes returns all registered message types

func IsRegistered

func IsRegistered(messageType, version string) bool

IsRegistered checks if a message type and version combination is registered

func New

func New(messageType, version string) (interface{}, error)

New creates a new instance of the specified message type and version For message types with multiple root messages, uses the first one found

func NewByMessageName

func NewByMessageName(messageType, version, messageName string) (interface{}, error)

NewByMessageName creates a new instance of a specific message by name

func Parse

func Parse(xmlData []byte, messageType, version string) (interface{}, error)

Parse parses XML data for a specific message type and version

func ParseAny

func ParseAny(xmlData []byte) (message interface{}, messageType, version string, err error)

ParseAny automatically detects the message type and parses the XML accordingly

Types

type MessageTypeInfo

type MessageTypeInfo struct {
	Type        reflect.Type
	Namespace   string
	RootElement string
}

MessageTypeInfo holds information about a registered DDEX message type

Jump to

Keyboard shortcuts

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