configreader

package
v0.0.0-...-4a518ae Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2017 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalystConfig

type AnalystConfig struct {
	Charts []map[string]interface{} `yaml:"charts"`
}

AnalystConfig is the representation of the analyst.yaml confi file

type ChartStatsMethod

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

ChartStatsMethod defines the structure of the container in which references to statistical methods of the regitry.Registry type and their parameters can be stored. The struct contains the reference to the callable wrapper method of a concrete statistical method and a parameter of interface type registry.StatsMethodParameters.

func GetStatsMethodsFromConfig

func GetStatsMethodsFromConfig(registry registry.Registry) []ChartStatsMethod

GetStatsMethodsFromConfig is the entrypoint for converting the analyst config file into references to executable statistical methods of the registry.Registry type. The returned method references can be executed by running their Call() method. See registryreflector.GetAllChartStatsMethods() for more info.

func (ChartStatsMethod) Call

Call implements the call of a method stored in a ChartStatsMethod struct. When executed, it will call the wrapper method stored in the struct and hand the given parameter wrapper to it. It will also set the title of the chartable.

Jump to

Keyboard shortcuts

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