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"` }