mirror of
https://github.com/rommapp/grout.git
synced 2026-04-23 06:54:36 +00:00
14 lines
306 B
Go
14 lines
306 B
Go
package romm
|
|
|
|
type HeartbeatResponse struct {
|
|
System struct {
|
|
Version string `json:"VERSION"`
|
|
} `json:"SYSTEM"`
|
|
}
|
|
|
|
func (c *Client) GetHeartbeat() (HeartbeatResponse, error) {
|
|
var heartbeat HeartbeatResponse
|
|
err := c.doRequest("GET", endpointHeartbeat, nil, nil, &heartbeat)
|
|
return heartbeat, err
|
|
}
|