expr

package
v0.0.0-...-dac20d5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

type Ctx interface {
	Event() *metapb.UserEvent
	Profile([]byte) []byte
	KV([]byte) ([]byte, error)
	TotalCrowd() *roaring.Bitmap
	StepCrowd() *roaring.Bitmap
}

Ctx expr excution ctx

type Runtime

type Runtime interface {
	// Exec calc result using src event
	Exec(Ctx) (bool, interface{}, error)
	Keys(Ctx, bool, func([]byte)) error
}

Runtime expr runtime

func NewRuntime

func NewRuntime(meta metapb.Expr) (Runtime, error)

NewRuntime create a expr runtime

Jump to

Keyboard shortcuts

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