metadata

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2018 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FunctionDescriptions = make(map[string]*types.FunctionDescription)

FunctionDescriptions is actual global variable that stores description of all functions we support

View Source
var FunctionDescriptionsGrouped = make(map[string]map[string]*types.FunctionDescription)

FunctionDescriptionsGrouped is actual global variable that stores description of all functions we support organised by group

View Source
var FunctionMD = Metadata{
	Functions: make(map[string]interfaces.Function),
}

FunctionMD is actual global variable that stores metadata

Functions

func RegisterFunction

func RegisterFunction(name string, function interfaces.Function)

RegisterFunction registers function in metadata and fills out all Description structs

func SetEvaluator

func SetEvaluator(evaluator interfaces.Evaluator)

SetEvaluator sets new evaluator function to be default for everything that needs it

Types

type Metadata

type Metadata struct {
	sync.RWMutex
	Functions map[string]interfaces.Function
	// contains filtered or unexported fields
}

Metadata is a type to store global function metadata

Jump to

Keyboard shortcuts

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