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 writer for results. Writer io.Writer // UUID is the UUID of this subtest. UUID string // contains filtered or unexported fields }
File is the file where we save measurements.
func NewFile ¶ added in v0.18.0
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) WriteResult ¶ added in v0.10.0
WriteResult serializes |result| as JSON.
Click to show internal directories.
Click to hide internal directories.