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 ¶
func (c ChartStatsMethod) Call() outputgen.BarChartable
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.