persistence

package
v0.0.0-...-39125e7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataFile

type DataFile struct {
	// contains filtered or unexported fields
}

DataFile is the file where we save measurements.

func New

func New(datadir, subtest, uuid string) (*DataFile, error)

New creates a DataFile for saving results in datadir.

func (*DataFile) Close

func (df *DataFile) Close() error

Close closes the gzip writer and the file.

func (*DataFile) Write

func (df *DataFile) Write(result interface{}) error

Write writes a JSON representation of result to this file.

Jump to

Keyboard shortcuts

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