mirror of
https://github.com/hamburghammer/gsave.git
synced 2024-12-31 21:57:40 +01:00
44897b3b5a
Simple interaction with the db like getting some data and inserting new data points into it.
16 lines
273 B
Go
16 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
|
|
}
|