Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Factories = make(map[string]func(cfg *config.Config, outCfg *config.Output) (Output, error))
Factories contains the list of all available outputs. The outputs can each then be created using the function saved in the map.
Functions ¶
Types ¶
type Data ¶
type Data struct {
TestStartTime time.Time
TestTime time.Time
Tester string
ServerHost string
ClientHost string
AdditionalInfo string
Data DataFormat
}
Data structured parsed data
type DataFormat ¶
type DataFormat interface {
}
DataFormat DataFormat interface that must be implemented by data formats, e.g., Table.
type Output ¶
type Output interface {
// Do do output related work on the given Data
Do(data Data) error
// OutputFiles return a list of output files
OutputFiles() []string
// Close run "cleanup" / close tasks, e.g., close file handles and others
Close() error
}
Output is the interface a output has to implement.
type Table ¶
type Table struct {
DataFormat
Headers []Column
Columns []Column
}
Table Data format for data in Table form
Click to show internal directories.
Click to hide internal directories.