mrule

package
v0.0.0-...-7f3f061 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddParser

func AddParser(name string, parser RulerParser)

Types

type EpochMeta

type EpochMeta struct {
	Now   time.Time
	Ids   map[string]int64
	Vars  map[string]interface{}
	Idxes map[string]int
	Objs  map[string]interface{}

	External map[string]string
}

func NewEpochMeta

func NewEpochMeta() *EpochMeta

type Iterator

type Iterator struct {
	// contains filtered or unexported fields
}

func Parse

func Parse(s, fieldType string) (*Iterator, error)

func (*Iterator) Next

func (iter *Iterator) Next(meta *EpochMeta) (interface{}, error)

type Ruler

type Ruler interface {
	Get(meta *EpochMeta) interface{}
}

type RulerParser

type RulerParser func(s string) (Ruler, error)

Jump to

Keyboard shortcuts

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