Versions in this module Expand all Collapse all v0 v0.3.0 Sep 1, 2026 Changes in this version + type CompiledRule struct + Effects []*Effect + FactPaths []string + Name string + Predicates []*schema.Predicate + Priority int + func (cr *CompiledRule) GetPriority() int + type Compiler struct + func (c *Compiler) CompileFile(path string, schemaInfo effectus.SchemaInfo) (effectus.Spec, error) + func (c *Compiler) CompileParsedFile(file *ast.File, path string, schemaInfo effectus.SchemaInfo) (effectus.Spec, error) + type Effect struct + Args map[string]interface{} + Verb string + type Executor struct + func NewExecutor(verbRegistry common.VerbRegistry, options ...ExecutorOption) *Executor + func (le *Executor) ExecuteRule(ctx context.Context, rule *CompiledRule, facts common.Facts) ([]eff.Effect, error) + type ExecutorOption func(*Executor) + func WithCapabilitySystem(capSystem *capability.CapabilitySystem) ExecutorOption + func WithSaga(store schema.SagaStore) ExecutorOption + type Spec struct + CapSystem *capability.CapabilitySystem + FactPaths []string + Name string + Rules []*CompiledRule + SagaEnabled bool + SagaStore schema.SagaStore + VerbRegistry common.VerbRegistry + func (s *Spec) Execute(ctx context.Context, facts effectus.Facts, ex effectus.Executor) error + func (s *Spec) GetName() string + func (s *Spec) RequiredFacts() []string