MCPcopy Index your code
hub / github.com/apache/casbin / GetFunctions

Method GetFunctions

model/function.go:57–66  ·  view source on GitHub ↗

GetFunctions return a map with all the functions.

()

Source from the content-addressed store, hash-verified

55
56// GetFunctions return a map with all the functions.
57func (fm *FunctionMap) GetFunctions() map[string]govaluate.ExpressionFunction {
58 ret := make(map[string]govaluate.ExpressionFunction)
59
60 fm.fns.Range(func(k interface{}, v interface{}) bool {
61 ret[k.(string)] = v.(govaluate.ExpressionFunction)
62 return true
63 })
64
65 return ret
66}

Callers 2

enforceMethod · 0.80

Calls 1

RangeMethod · 0.65

Tested by

no test coverage detected