workflow

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	Id          string
	Title       string
	Description string
	Run         func(ctx types.Context, input types.KV) (types.KV, error)
}

func (Rule) ID added in v0.30.1

func (r Rule) ID() string

func (Rule) TYPE added in v0.30.1

func (r Rule) TYPE() types.RulesetType

type Ruleset

type Ruleset []Rule

func (Ruleset) ProcessRule

func (r Ruleset) ProcessRule(ctx types.Context, input types.KV) (types.KV, error)

ProcessRule processes a specific rule within the Ruleset based on the provided context and input. It returns the result of the rule execution or an error if the execution fails or times out.

Jump to

Keyboard shortcuts

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