Documentation
¶
Overview ¶
Package middlewares provides HTTP middleware functionality for the Zero server. It includes common middleware like CORS, logging, and recovery, as well as utilities for chaining multiple middleware functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
Middleware represents a middleware function
func Append ¶
func Append(middlewares []Middleware, middleware Middleware, priority MiddlewarePriority) []Middleware
Append appends a middleware to the chain at the given priority
type MiddlewarePriority ¶
type MiddlewarePriority int
const ( // MiddlewarePriorityLow is the lowest priority for a middleware to be executed at the end of the chain MiddlewarePriorityLow MiddlewarePriority = iota // MiddlewarePriorityHigh is the highest priority for a middleware to be executed at the beginning of the chain MiddlewarePriorityHigh )
Click to show internal directories.
Click to hide internal directories.