median

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Median

type Median struct {
	// contains filtered or unexported fields
}

The Median struct holds parameters needed to run a Median plugin.

func NewMedian

func NewMedian(jb job.Job, ocr2Provider types.MedianProvider, pipelineRunner pipeline.Runner, runResults chan pipeline.Run, lggr logger.Logger, ocrLogger commontypes.Logger) (*Median, error)

NewMedian parses the arguments and returns a new Median struct.

func (*Median) GetPluginFactory

func (m *Median) GetPluginFactory() (ocr2types.ReportingPluginFactory, error)

GetPluginFactory return a median.NumericalMedianFactory.

func (*Median) GetServices

func (m *Median) GetServices() ([]job.ServiceCtx, error)

GetServices return an empty Service slice because Median does not need any services besides the generic OCR2 ones supplied in the OCR2 delegate. This method exists to satisfy the plugins.OraclePlugin interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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