conditional

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conditional

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

func NewConditional

func NewConditional(mainBranch string, dataQuery map[string]interface{}) *Conditional

func (Conditional) Data

func (r Conditional) Data() map[string]interface{}

func (Conditional) Run

func (r Conditional) Run(conditional string, setResultTo string) (res bool, err error)

type ConditionalRule

type ConditionalRule struct {
}

func NewConditionalRule added in v0.0.4

func NewConditionalRule() *ConditionalRule

func (ConditionalRule) Id

func (a ConditionalRule) Id() string

func (ConditionalRule) Infinity added in v0.0.4

func (a ConditionalRule) Infinity() bool

func (ConditionalRule) Initialize

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

func (ConditionalRule) Run

func (a ConditionalRule) 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 (ConditionalRule) Stop

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

type Option

type Option struct {
	Conditional      string `json:"conditional"`
	SetParamResultTo string `json:"set_param_result_to"`
	NextError        string `json:"next_error"`
	NextTrue         string `json:"next_true"`
	NextFalse        string `json:"next_false"`
	Debug            bool   `json:"debug"`
}

type Result

type Result struct {
	End     bool
	Result  bool
	IsValue bool
	Type    daq.TypeData
	Value   interface{}
}

Jump to

Keyboard shortcuts

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