go-dfl: github.com/spatialcurrent/go-dfl/pkg/dfl/request Index | Files

package request

import "github.com/spatialcurrent/go-dfl/pkg/dfl/request"

Index

Package Files

ErrInvalidResultType.go ErrMissingContextValue.go Evaluate.go EvaluateBool.go GetExpression.go WithCache.go WithContext.go WithExpression.go WithExpressionAndContext.go WithFunctions.go WithVariables.go contextKey.go

func Evaluate Uses

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

func EvaluateBool Uses

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

func GetExpression Uses

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

func WithCache Uses

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

func WithContext Uses

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

func WithExpression Uses

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

func WithExpressionAndContext Uses

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

func WithFunctions Uses

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

func WithVariables Uses

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

type ErrInvalidResultType Uses

type ErrInvalidResultType struct {
    Type reflect.Type
}

func (*ErrInvalidResultType) Error Uses

func (e *ErrInvalidResultType) Error() string

type ErrMissingContextValue Uses

type ErrMissingContextValue struct {
    Name string
}

func (*ErrMissingContextValue) Error Uses

func (e *ErrMissingContextValue) Error() string

Package request imports 6 packages (graph). Updated 2019-09-22. Refresh now. Tools for package owners.