lux/rpc/lux_rpc.go
2025-01-21 17:30:27 +02:00

17 lines
402 B
Go

package rpc
import "encoding/xml"
type LuxRpcRequest struct {
XMLName xml.Name `xml:"request"`
RequestID int `xml:"id,attr"`
Controller string `xml:"controller,attr"`
Command string `xml:"command,attr"`
// Commands specific fields
Hosts []struct {
XMLName xml.Name `xml:"host"`
HostID string `xml:"id,attr"`
Hostname string `xml:"hostname,attr"`
} `xml:"host"`
}