Versions in this module Expand all Collapse all v1 v1.0.3 Apr 4, 2026 v1.0.2 Apr 2, 2026 Changes in this version + type Block struct + func New(name string, steps ...Step) *Block + func (b *Block) Handler() server.Handler + func (b *Block) Init(_ context.Context) error + func (b *Block) Name() string + func (b *Block) Shutdown(_ context.Context) error + type State struct + func (s *State) Abort(resp *server.Response) + func (s *State) Bind(key string, dest any) error + func (s *State) Decision(key string) *decision.Result + func (s *State) Failed(decisionKey, ruleName string) bool + func (s *State) Get(key string) any + func (s *State) Has(key string) bool + func (s *State) Keys() []string + func (s *State) Passed(decisionKey, ruleName string) bool + func (s *State) Respond(resp *server.Response) + func (s *State) Set(key string, value any) + type Step struct + func DecideFromStep(name string, d *decision.Block, ...) Step + func DecideStep(name string, d *decision.Block, ...) Step + func EnrichStep(name string, ...) Step + func NewStep(name string, fn StepFn) Step + type StepFn func(ctx context.Context, req *server.Request, state *State) error + func AbortIf(condition func(state *State) bool, respFn func(state *State) *server.Response) StepFn + func Decide(d *decision.Block, ...) StepFn + func DecideFrom(d *decision.Block, inputFn func(req *server.Request, state *State) any) StepFn + func Enrich(fn func(ctx context.Context, req *server.Request, state *State) (any, error)) StepFn + func Respond(...) StepFn + func Transform(fn func(ctx context.Context, req *server.Request, state *State) error) StepFn + func Validate(d *decision.Block, ruleName string, ...) StepFn + func ValidateFrom(d *decision.Block, ruleName string, ...) StepFn + type ValidateOption func(*validateConfig) + func WithFailMessage(fn func(ruleName string) string) ValidateOption + func WithFailStatus(code int) ValidateOption