mirror of
https://github.com/hamburghammer/gsave.git
synced 2024-05-02 17:19:39 +02:00
44897b3b5a
Simple interaction with the db like getting some data and inserting new data points into it.
17 lines
273 B
Go
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
|
|
}
|