functions

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Functions = map[string]func(ts ...jql.Expression) (jql.Expression, error){
	"elem":    NewElement,
	"keys":    NewKeys,
	"id":      NewIdentity,
	"array":   NewArray,
	"object":  NewObject,
	"pipe":    NewPipe,
	"sprintf": NewSprintf,
	"join":    NewJoin,
	"filter":  NewFilter,
	"eq":      NewEqual,
	"lt":      NewLessThan,
	"gt":      NewGreaterThan,
	"range":   NewRange,
	"and":     NewAnd,
	"or":      NewOr,
	"not":     NewNot,
	"ifte":    NewIfTE,
	"error":   NewError,
	"recover": NewRecover,
	"zip":     NewZip,
}

Functions

func Floatify

func Floatify(arg interface{}) (float64, error)

func GetElement

func GetElement(positions interface{}, argument interface{}, leafExpression jql.Expression) (interface{}, error)

func IsTruthy

func IsTruthy(value interface{}) bool

func NewAnd

func NewAnd(ts ...jql.Expression) (jql.Expression, error)

func NewArray

func NewArray(ts ...jql.Expression) (jql.Expression, error)

func NewElement

func NewElement(ts ...jql.Expression) (jql.Expression, error)

func NewEqual

func NewEqual(ts ...jql.Expression) (jql.Expression, error)

func NewError

func NewError(ts ...jql.Expression) (jql.Expression, error)

func NewFilter

func NewFilter(ts ...jql.Expression) (jql.Expression, error)

func NewGreaterThan

func NewGreaterThan(ts ...jql.Expression) (jql.Expression, error)

func NewIdentity

func NewIdentity(ts ...jql.Expression) (jql.Expression, error)

func NewIfTE

func NewIfTE(ts ...jql.Expression) (jql.Expression, error)

func NewJoin

func NewJoin(ts ...jql.Expression) (jql.Expression, error)

func NewKeys

func NewKeys(ts ...jql.Expression) (jql.Expression, error)

func NewLessThan

func NewLessThan(ts ...jql.Expression) (jql.Expression, error)

func NewNot

func NewNot(ts ...jql.Expression) (jql.Expression, error)

func NewObject

func NewObject(ts ...jql.Expression) (jql.Expression, error)

func NewOr

func NewOr(ts ...jql.Expression) (jql.Expression, error)

func NewPipe

func NewPipe(ts ...jql.Expression) (jql.Expression, error)

func NewRange

func NewRange(ts ...jql.Expression) (jql.Expression, error)

func NewRecover

func NewRecover(ts ...jql.Expression) (jql.Expression, error)

func NewSprintf

func NewSprintf(ts ...jql.Expression) (jql.Expression, error)

func NewZip added in v0.2.0

func NewZip(ts ...jql.Expression) (jql.Expression, error)

Types

type And

type And struct {
	Values []jql.Expression
}

func (And) Get

func (t And) Get(arg interface{}) (interface{}, error)

type Array

type Array struct {
	Values []jql.Expression
}

func (Array) Get

func (t Array) Get(arg interface{}) (interface{}, error)

type Element

type Element struct {
	Positions       jql.Expression
	ValueExpression jql.Expression
}

func (Element) Get

func (t Element) Get(arg interface{}) (interface{}, error)

type Equal

type Equal struct {
	Left  jql.Expression
	Right jql.Expression
}

func (Equal) Get

func (t Equal) Get(arg interface{}) (interface{}, error)

type Error

type Error struct {
	Message jql.Expression
}

func (Error) Get

func (t Error) Get(arg interface{}) (interface{}, error)

type Filter

type Filter struct {
	Predicate  jql.Expression
	Expression jql.Expression
}

func (Filter) Get

func (t Filter) Get(arg interface{}) (interface{}, error)

type GreaterThan

type GreaterThan struct {
	Left  jql.Expression
	Right jql.Expression
}

func (GreaterThan) Get

func (t GreaterThan) Get(arg interface{}) (interface{}, error)

type Identity

type Identity struct {
}

func (Identity) Get

func (t Identity) Get(arg interface{}) (interface{}, error)

type IfTE

type IfTE struct {
	If   jql.Expression
	Then jql.Expression
	Else jql.Expression
}

func (IfTE) Get

func (t IfTE) Get(arg interface{}) (interface{}, error)

type Join

type Join struct {
	Strings   jql.Expression
	Separator jql.Expression
}

func (Join) Get

func (t Join) Get(arg interface{}) (interface{}, error)

type Keys

type Keys struct {
}

func (Keys) Get

func (s Keys) Get(arg interface{}) (interface{}, error)

type LessThan

type LessThan struct {
	Left  jql.Expression
	Right jql.Expression
}

func (LessThan) Get

func (t LessThan) Get(arg interface{}) (interface{}, error)

type Not

type Not struct {
	Value jql.Expression
}

func (Not) Get

func (t Not) Get(arg interface{}) (interface{}, error)

type Object

type Object struct {
	Keys   []jql.Expression
	Values []jql.Expression
}

func (Object) Get

func (t Object) Get(arg interface{}) (interface{}, error)

type Or

type Or struct {
	Values []jql.Expression
}

func (Or) Get

func (t Or) Get(arg interface{}) (interface{}, error)

type Pipe

type Pipe struct {
	Expressions []jql.Expression
}

func (Pipe) Get

func (t Pipe) Get(arg interface{}) (interface{}, error)

type Range

type Range struct {
	Begin jql.Expression
	End   jql.Expression
}

func (Range) Get

func (t Range) Get(arg interface{}) (interface{}, error)

type Recover

type Recover struct {
	Expression jql.Expression
}

func (Recover) Get

func (t Recover) Get(arg interface{}) (out interface{}, err error)

type Sprintf

type Sprintf struct {
	Format      jql.Expression
	Expressions []jql.Expression
}

func (Sprintf) Get

func (t Sprintf) Get(arg interface{}) (interface{}, error)

type Zip added in v0.2.0

type Zip struct {
	Arguments []jql.Expression
}

func (Zip) Get added in v0.2.0

func (t Zip) Get(arg interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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