gsave/db/host.go
Augusto Dwenger 44897b3b5a Implement the hosts controller
Simple interaction with the db like getting some data and inserting
new data points into it.
2020-10-18 15:38:57 +02:00

17 lines
273 B
Go

package db
import "time"
// Host representation of a Host inside the DB.
type Host struct {
HostInfo HostInfo
Stats []Stats
}
// HostInfo a small object to represent the Host object.
type HostInfo struct {
Hostname string
DataPoints int
LastInsert time.Time
}