vm

package
v0.0.0-...-eee4cb4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Strict execution means that errors encountered during the
	// query's execution will stop the execution on further messages.
	// By default, a VM will emit an error when a query turns out
	// to be invalid when running against a message. In normal mode,
	// the VM will simply skip that message and process the next one.
	// In strict mode, the VM will stop and return an error.
	Strict bool
}

Options that can be used by a VM

type VM

type VM interface {
	Run(build msg.Builder, src msg.Source, sink msg.Sink) error
}

A VM runs a query on a source of message and puts the result on a sink. A builder of message is used when the VM needs to construct new messages as part of the query.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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