battery-historian: github.com/google/battery-historian/powermonitor Index | Files

package powermonitor

import "github.com/google/battery-historian/powermonitor"

Package powermonitor parses power monitor files in the format of space separated values, and outputs CSV entries for integration with Historian v2.

Index

Package Files

power_monitor.go

func IsValid Uses

func IsValid(b []byte) bool

IsValid tries to determine if the given contents represent a valid power monitor file.

func Parse Uses

func Parse(f string) (bool, string, []error)

Parse writes a CSV entry for each line in the power monitor file, and returns whether the format was valid.

func ValidLines Uses

func ValidLines(b []byte) []string

ValidLines returns all valid power monitor lines in the given bytes.

Package powermonitor imports 8 packages (graph) and is imported by 2 packages. Updated 2017-06-20. Refresh now. Tools for package owners.