eval

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2017 License: Apache-2.0 Imports: 6 Imported by: 12

Documentation

Overview

Package eval supplies logic for automatically applying a search query to a set of records. The main entry point is eval.Compile, that builds and returns a Matcher.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(ctx context.Context, query *search.Query, klass reflect.Type) (event.Predicate, error)

Compile takes a search query and a a value type and produces a function that will perform the query against values of that type.

func Filter

func Filter(ctx context.Context, query *search.Query, klass reflect.Type, handler event.Handler) event.Handler

Filter uses a search query and returns a handler that filters events before passing them to the output handler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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