request

package
v0.0.0-...-8ad63dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Evaluate

func Evaluate(ctx context.Context) (map[string]interface{}, interface{}, error)

func EvaluateBool

func EvaluateBool(ctx context.Context) (map[string]interface{}, bool, error)

func GetExpression

func GetExpression(ctx context.Context) (string, error)

func WithCache

func WithCache(requestContext context.Context, c *cache.Cache) context.Context

func WithContext

func WithContext(requestContext context.Context, dflContext interface{}) context.Context

func WithExpression

func WithExpression(ctx context.Context, expression string) context.Context

func WithExpressionAndContext

func WithExpressionAndContext(requestContext context.Context, expression string, dflContext interface{}) context.Context

func WithFunctions

func WithFunctions(requestContext context.Context, funcs dfl.FunctionMap) context.Context

func WithVariables

func WithVariables(requestContext context.Context, variables map[string]interface{}) context.Context

Types

type ErrInvalidResultType

type ErrInvalidResultType struct {
	Type reflect.Type
}

func (*ErrInvalidResultType) Error

func (e *ErrInvalidResultType) Error() string

type ErrMissingContextValue

type ErrMissingContextValue struct {
	Name string
}

func (*ErrMissingContextValue) Error

func (e *ErrMissingContextValue) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL