Documentation
¶
Index ¶
- func GetHealth(address string) (fusion.Health, error)
- func IsRoomAvailable(room fusion.Room) (bool, error)
- func SoapDecode(data []byte, contents interface{}) error
- func SoapEncode(contents interface{}) ([]byte, error)
- func SoapRequest(url string, payload []byte) ([]byte, error)
- type Error
- type SoapBody
- type SoapEnvelope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHealth ¶
GetHealth checks a number of status items for each box and returns a JSON object representing the test restults
func IsRoomAvailable ¶
IsRoomAvailable checks room availability by consulting with the EMS API and examining the "POWER_ON" signal in Fusion
func SoapDecode ¶
SoapDecode decodes a response returned by a SOAP request
func SoapEncode ¶
SoapEncode encodes a request to be sent in a SOAP request
Types ¶
type Error ¶
type Error struct {
Message string
}
Error represents the API's method of returning errors to the user
func ReturnError ¶
ReturnError returns JSON sharing the error message with the user
type SoapBody ¶
type SoapBody struct { XMLName struct{} `xml:"Body"` Contents []byte `xml:",innerxml"` }
SoapBody is where The XML body goes
type SoapEnvelope ¶
type SoapEnvelope struct { XMLName struct{} `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"` Body SoapBody }
SoapEnvelope wraps XML SOAP requests
Click to show internal directories.
Click to hide internal directories.