MCPcopy Index your code
hub / github.com/cortexproject/cortex / Setup

Function Setup

pkg/parser/parser.go:13–16  ·  view source on GitHub ↗
(enableExperimentalFunctions, enableHoltWinters bool)

Source from the content-addressed store, hash-verified

11var functions = buildFunctions(true)
12
13func Setup(enableExperimentalFunctions, enableHoltWinters bool) {
14 promqlparser.EnableExperimentalFunctions = enableExperimentalFunctions
15 buildFunctions(enableHoltWinters)
16}
17
18func buildFunctions(enableHoltWinters bool) map[string]*promqlparser.Function {
19 fns := make(map[string]*promqlparser.Function, len(promqlparser.Functions))

Callers

nothing calls this directly

Calls 1

buildFunctionsFunction · 0.85

Tested by

no test coverage detected