forked from jondot/groundcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.go
30 lines (26 loc) · 968 Bytes
/
common.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
package main
type Reporter interface {
ReportHealth(h *Health)
}
type ReporterCredentials struct {
User string `json:"user"`
Key string `json:"key"`
}
type GraphiteConfig struct {
Prefix string `json:"prefix"`
Postfix string `json:"postfix"`
LineRec string `json:"linerec"`
}
type GroundControlConfig struct {
Temperature string `json:"temperature"`
Port int `json:"port"`
Host string `json:"host"`
Stdout bool `json:"stdout"`
Interval int `json:"interval"`
HistoryInterval int `json:"history_interval"`
HistoryBacklog int `json:"history_backlog"`
Librato ReporterCredentials `json:"librato"`
TempoDB ReporterCredentials `json:"tempodb"`
Graphite GraphiteConfig `json:"graphite"`
Controls map[string]interface{} `json:"controls"`
}