Documentation ¶
Index ¶
- func Evaluate(ctx context.Context) (map[string]interface{}, interface{}, error)
- func EvaluateBool(ctx context.Context) (map[string]interface{}, bool, error)
- func GetExpression(ctx context.Context) (string, error)
- func WithCache(requestContext context.Context, c *cache.Cache) context.Context
- func WithContext(requestContext context.Context, dflContext interface{}) context.Context
- func WithExpression(ctx context.Context, expression string) context.Context
- func WithExpressionAndContext(requestContext context.Context, expression string, dflContext interface{}) context.Context
- func WithFunctions(requestContext context.Context, funcs dfl.FunctionMap) context.Context
- func WithVariables(requestContext context.Context, variables map[string]interface{}) context.Context
- type ErrInvalidResultType
- type ErrMissingContextValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContext ¶
func WithFunctions ¶
Types ¶
type ErrInvalidResultType ¶
func (*ErrInvalidResultType) Error ¶
func (e *ErrInvalidResultType) Error() string
type ErrMissingContextValue ¶
type ErrMissingContextValue struct {
Name string
}
func (*ErrMissingContextValue) Error ¶
func (e *ErrMissingContextValue) Error() string
Click to show internal directories.
Click to hide internal directories.