MCPcopy Create free account
hub / github.com/cel-expr/cel-go / EvalStateFactory

Function EvalStateFactory

interpreter/interpreter.go:89–94  ·  view source on GitHub ↗

EvalStateFactory configures the EvalState generator to be used by the EvalStateObserver.

(factory func() EvalState)

Source from the content-addressed store, hash-verified

87
88// EvalStateFactory configures the EvalState generator to be used by the EvalStateObserver.
89func EvalStateFactory(factory func() EvalState) evalStateOption {
90 return func(fac *evalStateFactory) *evalStateFactory {
91 fac.factory = factory
92 return fac
93 }
94}
95
96// EvalStateObserver provides an observer which records the value associated with the given expression id.
97// EvalState must be provided to the observer.

Calls

no outgoing calls