Versions in this module Expand all Collapse all v0 v0.3.0 Nov 23, 2026 Changes in this version + var Skip = errors.New("rules: skip") + func Abort(reason string) error + func AbortInternal(err error) string + func AbortReason(err error) string + func AbortWithInternal(public, internal string) error + func IsAbort(err error) bool + func IsRetryable(err error) bool + func RetryableError(err error) error + type Context struct + Logger *log.Logger + Request *http.Request + func NewContext(ctx context.Context, req *http.Request) *Context + func (c *Context) Context() context.Context + func (c *Context) Get(key string) (any, bool) + func (c *Context) Set(key string, v any) + type Engine struct + func NewEngine() *Engine + func (e *Engine) Build() error + func (e *Engine) HTTPHandler(pipeline string) http.HandlerFunc + func (e *Engine) Load(fsys fs.FS, glob string) *Engine + func (e *Engine) Plan(ctx context.Context, req *http.Request, pipelineName string, ...) ([]PlanStep, error) + func (e *Engine) Register(rules ...Rule) *Engine + func (e *Engine) Run(ctx context.Context, req *http.Request, pipelineName string) (Result, error) + func (e *Engine) Snapshot() Snapshot + type PipelineChange struct + AddedRules []string + ChangedRules []string + Kind string + Pipeline string + RemovedRules []string + type PlanStep struct + Depth int + Kind string + Name string + Pipeline string + When string + WhenError string + WhenResult *bool + With StepConfig + Writes []string + type Result map[string]any + func (r Result) Bind(v any) error + func (r Result) Pick(keys ...string) Result + type Retryable interface + Retryable func() bool + type Rule interface + Name func() string + Run func(c *Context, with StepConfig) error + Writes func() []string + type RuleError struct + Err error + Rule string + func (e *RuleError) Error() string + func (e *RuleError) Unwrap() error + type Snapshot struct + func (s Snapshot) Diff(prev Snapshot) []PipelineChange + type StepConfig map[string]any + func (s StepConfig) Bool(key string) bool + func (s StepConfig) Has(key string) bool + func (s StepConfig) Int(key string) int + func (s StepConfig) String(key string) string v0.2.0 Nov 23, 2026