ginmw

package
v0.19.855 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsMiddleware

func AsMiddleware(f any) any

AsMiddleware annotates a constructor so FX collects it into the "middlewares" group.

Types

type Middleware

type Middleware interface {
	Name() string
	Handler() gin.HandlerFunc
}

Middleware is the shared interface for Gin middlewares registered via FX. Both ctl-api and dashboard-ui BFF use this interface.

Jump to

Keyboard shortcuts

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