/
remote.go
40 lines (36 loc) · 1.04 KB
/
remote.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
package model
import (
"encoding/json"
)
type RemoteObject struct {
Param struct {
Limit int `json:"limit"`
Search string `json:"search"`
Server string `json:"server"`
Timezone json.RawMessage `json:"timezone"`
} `json:"param"`
Timestamp struct {
From int64 `json:"from"`
To int64 `json:"to"`
} `json:"timestamp"`
}
type RemoteResponse struct {
Total int `json:"total"`
D json.RawMessage `json:"data"`
}
// Salutation : here you tell us what Salutation is
// Printer : what is this?
// Greet : describe what this function does
// CreateMessage : describe what this function does
type RemotePoint struct {
Attemps int `json:"attemps"`
Partid int `json:"partid"`
Group int `json:"group"`
Id int `json:"id"`
Reporttime int64 `json:"reporttime"`
Table string `json:"table"`
Tag1 string `json:"tag1"`
Transaction string `json:"transaction"`
Countername string `json:"countername"`
Value float64 `json:"value"`
}