pipeline

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package pipeline composes the per-call security chain.

A chain is an ordered list of domain.Stage middlewares wrapped around a base handler, à la net/http middleware: stages run in order on the way in and unwind in reverse on the way out. The base handler is backed by a domain.Dispatcher. The package owns only the composition mechanism; the concrete stages (policy, redaction, secrets, resilience, audit) are assembled and ordered at the composition root, so reordering or inserting a stage is a wiring change there, never an edit here (design §3).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(stages []domain.Stage, base domain.HandlerFunc) domain.HandlerFunc

Chain composes stages around base into a single handler. stages[0] is the outermost; the chain terminates in base. A nil or empty stage list yields base unchanged.

func FromDispatcher

func FromDispatcher(d domain.Dispatcher) domain.HandlerFunc

FromDispatcher adapts a Dispatcher into the base handler a chain terminates in.

Types

This section is empty.

Jump to

Keyboard shortcuts

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