package
Version:
v0.0.0-...-52ab7f8
Opens a new window with list of versions in this module.
Published: Sep 25, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type HealthInfo struct {
UUID string `json:"n_uuid"`
State int `json:"state"`
}
type Node struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Group string `json:"group"`
Location struct {
Lat float64 `json:"lat"`
Lon float64 `json:"lon"`
} `json:"location"`
}
type NodeState struct {
NodeID string `json:"n_uuid"`
State bool `json:"state"`
}
type StateDoc struct {
Node Node `json:"node"`
Status model.Status `json:"status"`
Timestamp string `json:"timestamp"`
}
type States struct {
Timestamp string `json:"timestamp"`
State []NodeState `json:"state"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.