frontend

package
v0.0.0-...-8f0b1ba Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const PointsPerGraph = 200

PointsPerGraph defines the number of points per graph with respect to the total duration.

Variables

View Source
var Templater = tmplutil.Templater{
	FileSystem: webFS,
	Includes: map[string]string{
		"rawcss": "static/style.css",
	},
	Functions: template.FuncMap{},
}

Functions

func MountStatic

func MountStatic() http.Handler

MountStatic mounts a static HTTP handler.

func ReadSnapshots

func ReadSnapshots(path string, dura time.Duration) (sysmet.SnapshotBuckets, error)

ReadSnapshots reads snapshots from the given path with the given duration.

func WriteJSON

func WriteJSON(w io.Writer, path string, dura time.Duration)

WriteJSON writes snapshots as JSON. Errors are logged into stderr.

Types

This section is empty.

Directories

Path Synopsis
components
metric
Package metric draws metric graphs using SVG lines.
Package metric draws metric graphs using SVG lines.
pages

Jump to

Keyboard shortcuts

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