parsers

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Factories = make(map[string]func(cfg *config.Config, test *config.Test) (Parser, error))

Factories contains the list of all available testers. The parser can each then be created using the function saved in the map.

Functions

This section is empty.

Types

type Input

type Input struct {
	TestStartTime  time.Time
	TestTime       time.Time
	Round          int
	DataStream     *io.ReadCloser
	Data           []byte
	Tester         string
	ServerHost     string
	ClientHost     string
	AdditionalInfo string
}

Input structured parse

type Parser

type Parser interface {
	// Parse parse data from runners.Execute() func
	Parse(doneCh chan struct{}, inCh <-chan Input, dataCh chan<- outputs.Data) error
	// Summary send summary of parsed data to outputs.Output
	Summary(doneCh chan struct{}, inCh <-chan Input, dataCh chan<- outputs.Data) error
}

Parser is the interface a parser has to implement

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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