-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
72 lines (59 loc) · 1.51 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package main
type alpacaResponse struct {
ClientTransactionID uint32 `json:"ClientTransactionID"`
ServerTransactionID uint32 `json:"ServerTransactionID"`
ErrorNumber int32 `json:"ErrorNumber"`
ErrorMessage string `json:"ErrorMessage"`
}
type stringResponse struct {
Value string `json:"Value"`
alpacaResponse
}
type stringlistResponse struct {
Value []string `json:"Value"`
alpacaResponse
}
type booleanResponse struct {
Value bool `json:"Value"`
alpacaResponse
}
type float64Response struct {
Value float64 `json:"Value"`
alpacaResponse
}
type int32Response struct {
Value int32 `json:"Value"`
alpacaResponse
}
type uint32listResponse struct {
Value []uint32 `json:"Value"`
alpacaResponse
}
type uint32Rank2ArrayResponse struct {
Value [][]uint32 `json:"Value"`
Rank uint32 `json:"Rank"`
alpacaResponse
}
type putResponse struct {
alpacaResponse
}
type managementDevicesListResponse struct {
Value []DeviceConfiguration `json:"Value"`
alpacaResponse
}
type DeviceConfiguration struct {
DeviceName string `json:"DeviceName"`
DeviceType string `json:"DeviceType"`
DeviceNumber int `json:"DeviceNumber"`
UniqueID string `json:"UniqueID"`
}
type managementDescriptionResponse struct {
Value ServerDescription `json:"Value"`
alpacaResponse
}
type ServerDescription struct {
ServerName string `json:"ServerName"`
Manufacturer string `json:"Manufacturer"`
ManufacturerVersion string `json:"ManufacturerVersion"`
Location string `json:"Location"`
}