Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device interface { StatusReader SampleReader }
Device implemented by components that read hw data.
type Sample ¶
type Sample struct { LocalTime time.Time `json:"localTime" bson:"localTime"` Timestamp int64 `json:"timestamp" bson:"timestamp"` Metrics Info `json:"metrics" bson:"metrics"` }
Sample holds data collected at some time.
type SampleFetcher ¶
SampleFetcher is the interface that must be implemented by a database service for querying data.
type SampleReader ¶
SampleReader is the interface that must implemented by the device.
type SampleWriter ¶
SampleWriter is the interface that must be implemented by a database service for persisting data.
type Status ¶
type Status struct { LocalTime time.Time `json:"localTime" bson:"localTime"` Metrics Info `json:"metrics" bson:"metrics"` }
Status holds static data about the device like CPU info, users, etc.
type StatusReader ¶
StatusReader is the interface the must be implemented by the device.
type UserManager ¶
UserManager is the interface that must be implemented by the database service for fetching and authenticating users.
Click to show internal directories.
Click to hide internal directories.