arithmetic

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arithmetic

type Arithmetic struct {
}

func NewArithmetic added in v0.0.4

func NewArithmetic() *Arithmetic

func (Arithmetic) Id

func (a Arithmetic) Id() string

func (Arithmetic) Infinity added in v0.0.4

func (a Arithmetic) Infinity() bool

func (Arithmetic) Initialize

func (a Arithmetic) Initialize(ctx context.Context, options map[string]interface{}) error

func (Arithmetic) Run

func (a Arithmetic) Run(ctx context.Context, subscribeQueueInput func(ctx context.Context, callback queue.SubscribeFunction[*data.InputEngine]) error, pushQueueOutput func(ctx context.Context, input *data.OutputEngine) error)

func (Arithmetic) Stop

func (a Arithmetic) Stop(ctx context.Context) error

type Math

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

func NewMath

func NewMath(mainBranch string, dataQuery map[string]interface{}) *Math

func (Math) Data

func (m Math) Data() map[string]interface{}

func (Math) Run

func (m Math) Run(expressionStr string, keyResult string) error

type Option

type Option struct {
	Operators   map[string]string `json:"operators"`
	NextError   string            `json:"next_error"`
	NextSuccess string            `json:"next_success"`
	Debug       bool              `json:"debug"`
}

Jump to

Keyboard shortcuts

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