Documentation ¶ Index ¶ func Sync() error func WaitForSync() type Metrics func GetMetrics() (*Metrics, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Sync ¶ func Sync() error func WaitForSync ¶ func WaitForSync() Types ¶ type Metrics ¶ type Metrics struct { CPU float64 `json:"cpu_pct"` // Percent rounded to 2 decimal places Mem uint64 `json:"mem_bytes"` // Total virtual memory in bytes Timestamp int64 `json:"ts"` // Unix Timestamp in UTC } func GetMetrics ¶ func GetMetrics() (*Metrics, error) Source Files ¶ View all Source files metrics.go sync.go Click to show internal directories. Click to hide internal directories.