Documentation ¶
Index ¶
- Variables
- func GetEvaluator() interfaces.Evaluator
- func RegisterFunction(name string, function interfaces.Function)
- func RegisterFunctionWithFilename(name, filename string, function interfaces.Function)
- func RegisterRewriteFunction(name string, function interfaces.RewriteFunction)
- func RegisterRewriteFunctionWithFilename(name, filename string, function interfaces.RewriteFunction)
- func SetEvaluator(evaluator interfaces.Evaluator)
- type Metadata
Constants ¶
This section is empty.
Variables ¶
View Source
var FunctionMD = Metadata{ RewriteFunctions: make(map[string]interfaces.RewriteFunction), Functions: make(map[string]interfaces.Function), Descriptions: make(map[string]types.FunctionDescription), DescriptionsGrouped: make(map[string]map[string]types.FunctionDescription), FunctionConfigFiles: make(map[string]string), FunctionsFilenames: make(map[string][]string), RewriteFunctionsFilenames: make(map[string][]string), }
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 RegisterFunctionWithFilename ¶ added in v0.14.2
func RegisterFunctionWithFilename(name, filename string, function interfaces.Function)
RegisterFunctionWithFilename registers function in metadata and fills out all Description structs
func RegisterRewriteFunction ¶
func RegisterRewriteFunction(name string, function interfaces.RewriteFunction)
RegisterRewriteFunction registers function for a rewrite phase in metadata and fills out all Description structs
func RegisterRewriteFunctionWithFilename ¶ added in v0.14.2
func RegisterRewriteFunctionWithFilename(name, filename string, function interfaces.RewriteFunction)
RegisterRewriteFunctionWithFilename registers function for a rewrite phase 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 RewriteFunctions map[string]interfaces.RewriteFunction Descriptions map[string]types.FunctionDescription DescriptionsGrouped map[string]map[string]types.FunctionDescription FunctionConfigFiles map[string]string FunctionsFilenames map[string][]string RewriteFunctionsFilenames map[string][]string // contains filtered or unexported fields }
Metadata is a type to store global function metadata
Click to show internal directories.
Click to hide internal directories.