MCPcopy Index your code
hub / github.com/dreamsofcode-io/zenstats / Chain

Function Chain

internal/middleware/middleware.go:14–21  ·  view source on GitHub ↗

Chain creates a middleware that composes all of the internal chained middleware

(middlewares ...Middleware)

Source from the content-addressed store, hash-verified

12// Chain creates a middleware that composes all of the internal chained
13// middleware
14func Chain(middlewares ...Middleware) Middleware {
15 return func(next http.Handler) http.Handler {
16 for _, x := range slices.Backward(middlewares) {
17 next = x(next)
18 }
19 return next
20 }
21}

Callers 1

loadRoutesMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected