package
Version:
v0.0.0-...-596c362
Opens a new window with list of versions in this module.
Published: Jan 3, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package protocol defines the types necessary for unmarshalling a
protocol-specification XML file.
type Arg struct {
Name string `xml:"name,attr"`
Summary string `xml:"summary,attr"`
Type string `xml:"type,attr"`
AllowNull bool `xml:"allow-null,attr"`
Interface string `xml:"interface,attr"`
Version int `xml:"version,attr"`
Enum string `xml:"enum,attr"`
}
type Description struct {
Summary string `xml:"summary,attr"`
Full string `xml:",chardata"`
}
type Entry struct {
Name string `xml:"name,attr"`
Summary string `xml:"summary,attr"`
Value string `xml:"value,attr"`
}
type Enum struct {
Name string `xml:"name,attr"`
Description Description `xml:"description"`
Entries []Entry `xml:"entry"`
}
type Interface struct {
Name string `xml:"name,attr"`
Version int `xml:"version,attr"`
Description Description `xml:"description"`
Requests []Op `xml:"request"`
Events []Op `xml:"event"`
Enums []Enum `xml:"enum"`
}
type Op struct {
Name string `xml:"name,attr"`
Description Description `xml:"description"`
Args []Arg `xml:"arg"`
}
type Protocol struct {
Name string `xml:"name,attr"`
Copyright string `xml:"copyright"`
Interfaces []Interface `xml:"interface"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.