Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvalInterpreter ¶
type EvalInterpreter struct {
// contains filtered or unexported fields
}
func NewEvalInterpreter ¶
func NewEvalInterpreter(sourceScript string, opts ...Option) (*EvalInterpreter, error)
NewEvalInterpreter create new EvalInterpreter
func (*EvalInterpreter) ExecuteScript ¶
func (ev *EvalInterpreter) ExecuteScript(f func(executor any)) (err error)
ExecuteScript execute script by responseBody and sourceScript script must be have only one function with name Check script function must return string script function parameter must be map[string]any
Click to show internal directories.
Click to hide internal directories.