package
Version:
v0.0.0-...-6785d67
Opens a new window with list of versions in this module.
Published: May 27, 2024
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Action struct {
Event string `xml:"event,attr"`
Run string `xml:"run,attr"`
}
type App struct {
Appid string `xml:"appid,attr"`
Version string `xml:"version,attr"`
Ap string `xml:"ap,attr"`
UpdateCheck struct{} `xml:"updatecheck"`
}
type Os struct {
Platform string `xml:"platform,attr"`
Version string `xml:"version,attr"`
Architecture string `xml:"arch,attr"`
}
type Request struct {
XMLName xml.Name `xml:"request"`
Protocol string `xml:"protocol,attr"`
Os Os `xml:"os"`
App App `xml:"app"`
}
type Response struct {
XMLName xml.Name `xml:"response"`
App struct {
Status string `xml:"status"`
UpdateCheck struct {
Manifest struct {
Version string `xml:"version,attr"`
Actions []Action `xml:"actions>action"`
} `xml:"manifest"`
Urls []struct {
Codebase string `xml:"codebase,attr"`
} `xml:"urls>url"`
} `xml:"updatecheck"`
} `xml:"app"`
}
NOTE: Use `InnerXML string `xml:",innerxml"“ to inspect unknown fields: https://stackoverflow.com/a/38509722
Source Files
¶
Click to show internal directories.
Click to hide internal directories.