chain

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package chain provides chain building logic for middleware orchestration.

Package chain provides chain execution logic for middleware orchestration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChainImpl

func NewChainImpl(middlewares []core.Middleware) *chain

NewChainImpl creates a new chain from a list of middleware.

Types

type ChainBuilder

type ChainBuilder struct {
	// contains filtered or unexported fields
}

ChainBuilder builds middleware chains based on type and registry.

func NewChainBuilder

func NewChainBuilder(registry core.Registry, logger core.Logger) *ChainBuilder

NewChainBuilder creates a new chain builder.

func (*ChainBuilder) Build

func (b *ChainBuilder) Build(chainType core.ChainType) (core.Chain, error)

Build constructs a middleware chain for the given chain type.

Jump to

Keyboard shortcuts

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