performance

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutputFormats

func OutputFormats() []app.OutputFormat

func WriteOutput

func WriteOutput(w io.Writer, format app.OutputFormat, result Result) error

Types

type DataPoint

type DataPoint struct {
	Offset      time.Duration `yaml:"offset" json:"offset"`
	Bands       []string      `yaml:"bands,flow" json:"bands"`
	MultiValues []string      `yaml:"multi_values" json:"multi_values"`
	QSOs        int           `yaml:"qsos" json:"qsos"`
	Points      int           `yaml:"points" json:"points"`
	Multis      int           `yaml:"multis" json:"multis"`
	Total       int           `yaml:"total" json:"total"`
}

type Output

type Output interface {
	Write(io.Writer, Result) error
}

type OutputFunc

type OutputFunc func(io.Writer, Result) error

func (OutputFunc) Write

func (f OutputFunc) Write(w io.Writer, result Result) error

type Result

type Result struct {
	Resolution time.Duration
	DataPoints []DataPoint
}

func Evaluate

func Evaluate(logfile app.Logfile, definition *conval.Definition, setup *conval.Setup, startTime time.Time, resolution time.Duration) (Result, error)

Jump to

Keyboard shortcuts

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