-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel.go
More file actions
43 lines (37 loc) · 724 Bytes
/
model.go
File metadata and controls
43 lines (37 loc) · 724 Bytes
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
package main
import "time"
type UsersStruct struct {
Id int
Name string
Email string
}
//устройства
type DevicesStruct struct {
Id int
Name string
Userid int
}
//метрика устройства
type DevicesMetricStruct struct {
Id int
Deviceid int
Metric [5]int
LocalTime time.Time
ServerTime time.Time
}
//сообщение о плохих метриках
type DeviceAlertStruct struct {
Id int
Deviceid int
Message string
}
//файл конфигурации
type MyConfig struct {
DBuser string
DBname string
DBpassword string
BadMetricParam int `toml:bmp`
Fmail string
Fpass string
Tmail string
}