database

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func InsertRecord

func InsertRecord(cpuUsage float64, memoryUsage float64, diskUsage float64) error

func Open

func Open() error

Types

type Record

type Record struct {
	Id          int     `db:"id" json:"id"`
	CpuUsage    float64 `db:"cpu_usage" json:"cpu_usage"`
	MemoryUsage float64 `db:"memory_usage" json:"memory_usage"`
	DiskUsage   float64 `db:"disk_usage" json:"disk_usage"`
	Timestamp   int64   `db:"timestamp" json:"timestamp"`
}

func SelectRecords

func SelectRecords(start int64, end int64, maximumCount int) ([]Record, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL