middleware

package
v0.1.0-alpha.74 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package middleware composes GoBeyond's low-level Go runtime middleware hook.

Rule and Chain remain useful for applications that want to compose named, matcher-aware functions inside the one compiler-discovered root hook.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(rules []Rule, final gb.Handler) (gb.Handler, error)

func MustChain

func MustChain(rules []Rule, final gb.Handler) gb.Handler

MustChain is the startup-time form of Chain for authored middleware. The matcher configuration is compile-time application code, so an invalid rule is a programmer error and should stop the process rather than become a request-time authorization bypass.

Types

type Rule

type Rule struct {
	Name       string
	Config     gb.MiddlewareConfig
	Middleware gb.Middleware
}

Jump to

Keyboard shortcuts

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