filter

package module
v0.0.0-...-bc7b048 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Add

type Add struct {
	Fcore
}

* Add

func (*Add) Eval

func (s *Add) Eval() error

func (*Add) ParseConfig

func (s *Add) ParseConfig(cfg string) error

type Const

type Const struct {
	Fcore
}

func (Const) Eval

func (s Const) Eval() error

func (*Const) ParseConfig

func (s *Const) ParseConfig(cfg string) error

type ConstParams

type ConstParams struct {
	Value float64 `json:"value"`
}

type Div

type Div struct {
	Fcore
}

* Div

func (*Div) Eval

func (s *Div) Eval() error

func (*Div) ParseConfig

func (s *Div) ParseConfig(cfg string) error

type Fcore

type Fcore struct {
	Instance int64
	Source   []Filter
	Retval   ReturnValue
}

func (*Fcore) AddSource

func (c *Fcore) AddSource(f Filter) error

func (*Fcore) GetRetval

func (c *Fcore) GetRetval() ReturnValue

func (*Fcore) PrintSources

func (c *Fcore) PrintSources()

func (*Fcore) SetInstance

func (c *Fcore) SetInstance(i int64)

type Filter

type Filter interface {
	AddSource(Filter) error
	GetRetval() ReturnValue
	Eval() error
	ParseConfig(string) error

	SetInstance(int64)
}

func Factory

func Factory(instance int64, t string, cfg string) (Filter, error)

type FloatValue

type FloatValue struct {
	Value []float64
}

func (*FloatValue) GetBool

func (f *FloatValue) GetBool() bool

func (*FloatValue) GetBools

func (f *FloatValue) GetBools() []bool

func (*FloatValue) GetFloat

func (f *FloatValue) GetFloat() float64

func (*FloatValue) GetFloats

func (f *FloatValue) GetFloats() []float64

func (*FloatValue) GetInt

func (f *FloatValue) GetInt() int64

func (*FloatValue) GetInts

func (f *FloatValue) GetInts() []int64

func (*FloatValue) IsNull

func (f *FloatValue) IsNull() bool

type Getmem

type Getmem struct {
	Fcore
	// contains filtered or unexported fields
}

func (*Getmem) Eval

func (s *Getmem) Eval() error

func (*Getmem) ParseConfig

func (s *Getmem) ParseConfig(cfg string) error

type GetmemParams

type GetmemParams struct {
	Name string `json:"name"`
}

type Mul

type Mul struct {
	Fcore
}

* Mul

func (*Mul) Eval

func (s *Mul) Eval() error

func (*Mul) ParseConfig

func (s *Mul) ParseConfig(cfg string) error

type Or

type Or struct {
	Fcore
}

func (*Or) Eval

func (s *Or) Eval() error

func (*Or) ParseConfig

func (s *Or) ParseConfig(cfg string) error

type OrParams

type OrParams struct {
	Name string `json:"name"`
}

type ReturnValue

type ReturnValue interface {
	GetFloat() float64
	GetFloats() []float64
	GetBool() bool
	GetBools() []bool
	GetInt() int64
	GetInts() []int64
	IsNull() bool
}

type Setmem

type Setmem struct {
	Fcore
	// contains filtered or unexported fields
}

func (*Setmem) Eval

func (s *Setmem) Eval() error

func (*Setmem) ParseConfig

func (s *Setmem) ParseConfig(cfg string) error

type SetmemParams

type SetmemParams struct {
	Name string `json:"name"`
}

type Sub

type Sub struct {
	Fcore
}

* Sub

func (*Sub) Eval

func (s *Sub) Eval() error

func (*Sub) ParseConfig

func (s *Sub) ParseConfig(cfg string) error

Jump to

Keyboard shortcuts

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