function

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionNamespace

type FunctionNamespace interface {
	GetFunction(functionName string) (NamedMatchFunction, error)
	PutFunction(function NamedMatchFunction) error
}

func MakeFunctionNamespace

func MakeFunctionNamespace() FunctionNamespace

func StandardFunctions

func StandardFunctions() FunctionNamespace

type MatchFunction

type MatchFunction interface {
	Match(literals []string, entries []crdt.Entry) bool
}

type MatchFunctionLambda

type MatchFunctionLambda func(literals []string, entries []crdt.Entry) bool

func (MatchFunctionLambda) Match

func (lambda MatchFunctionLambda) Match(literals []string, entries []crdt.Entry) bool

type NamedFunction

type NamedFunction interface {
	FuncName() string
}

type NamedMatchFunction

type NamedMatchFunction interface {
	NamedFunction
	MatchFunction
}

type NamedMatchFunctionLambda

type NamedMatchFunctionLambda struct {
	Function MatchFunction
	Name     string
}

func (NamedMatchFunctionLambda) FuncName

func (lambda NamedMatchFunctionLambda) FuncName() string

func (NamedMatchFunctionLambda) Match

func (lambda NamedMatchFunctionLambda) Match(literals []string, entries []crdt.Entry) bool

type StrEq

type StrEq struct{}

func (StrEq) FuncName

func (streq StrEq) FuncName() string

func (StrEq) Match

func (StrEq) Match(literals []string, entries []crdt.Entry) bool

type StrGlob

type StrGlob struct {
	Cache *globCache
}

func (*StrGlob) FuncName

func (wildcard *StrGlob) FuncName() string

func (*StrGlob) Match

func (wildcard *StrGlob) Match(literals []string, entries []crdt.Entry) bool

type StrRegexp

type StrRegexp struct {
	Cache *regexpCache
}

func (*StrRegexp) FuncName

func (regexp *StrRegexp) FuncName() string

func (*StrRegexp) Match

func (regexp *StrRegexp) Match(literals []string, entries []crdt.Entry) bool

Jump to

Keyboard shortcuts

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