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

Function EvalStateFactory

interpreter/interpreter.go:85–90  ·  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

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

Calls

no outgoing calls