Documentation
¶
Overview ¶
Package historianutils is a library of common utility functions for Battery Historian processing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ServiceDumpRE is a regular expression to match the beginning of a service dump. ServiceDumpRE = regexp.MustCompile(`^DUMP\s+OF\s+SERVICE\s+(?P<service>\S+):`) )
Functions ¶
func ErrorsToString ¶
ErrorsToString converts an array of errors into a newline delimited string.
func GzipCompress ¶
GzipCompress compresses byte data.
func RunCommand ¶
RunCommand executes the given command and returns the output.
func ScrubPII ¶
ScrubPII scrubs any part of the string that looks like PII (eg. an email address). From:
com.google.android.apps.plus.content.EsProvider/com.google/john.doe@gmail.com/extra or *sync*/com.app.android.conversations/com.app.android.account/Mr. Noogler
To:
com.google.android.apps.plus.content.EsProvider/com.google/XXX@gmail.com/extra or *sync*/com.app.android.conversations/com.app.android.account/XXX
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.