results

package
v0.20.7 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	// Writer is the gzip writer instance
	Writer *gzip.Writer

	// Fp is the underlying file
	Fp *os.File

	// UUID is the UUID of this subtest
	UUID string
}

File is the file where we save measurements.

func NewFile added in v0.18.0

func NewFile(uuid string, datadir string, what spec.SubtestKind) (*File, error)

NewFile creates a file for saving results in datadir named after the uuid and kind. Returns the results file on success. Returns an error in case of failure. The "datadir" argument specifies the directory on disk to write the data into and the what argument should indicate whether this is a spec.SubtestDownload or a spec.SubtestUpload ndt7 measurement.

func (*File) Close

func (fp *File) Close() error

Close closes the measurement file.

func (*File) WriteResult added in v0.10.0

func (fp *File) WriteResult(result interface{}) error

WriteResult serializes |result| as JSON.

Jump to

Keyboard shortcuts

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