Documentation ¶
Index ¶
- type Service
- func (c *Service) Evaluate(ctx context.Context, expr string, out value.ValueOut) error
- func (c *Service) EvaluateParams(ctx context.Context, expr string, out value.ValueOut, ...) error
- func (c *Service) GetVariable(ctx context.Context, name string, out value.ValueOut) error
- func (c *Service) GetVariableNames(ctx context.Context) ([]string, error)
- func (c *Service) GetVariables(ctx context.Context) (map[string]interface{}, error)
- func (c *Service) SetVariable(ctx context.Context, name string, value value.Value) error
- func (c *Service) SetVariables(ctx context.Context, vars map[string]value.Value) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(conn grpc.ClientConnInterface) *Service
func (*Service) Evaluate ¶
EvaluateParams evaluates the given expression, and returns the result into the output value
func (*Service) EvaluateParams ¶
func (c *Service) EvaluateParams(ctx context.Context, expr string, out value.ValueOut, params map[string]value.Value) error
EvaluateParams evaluates the given expression, and returns the result into the output value. The given map of parameters are set as variables before the expression is evaluated, which approximates a parameterized query; allowing a safer expression evaluation compared to string concatenation.
func (*Service) GetVariable ¶
GetVariable gets the tasks variable to the given value
func (*Service) GetVariableNames ¶
GetVariableNames gets the list of variable names currently set in the task
func (*Service) GetVariables ¶
GetVariables gets all variable currently set in the task
func (*Service) SetVariable ¶
SetVariable sets the tasks variable to the given value
Click to show internal directories.
Click to hide internal directories.