MCPcopy Create free account
hub / github.com/devfeel/dotweb / GetMiddlewareFunc

Method GetMiddlewareFunc

dotweb.go:169–174  ·  view source on GitHub ↗

GetMiddlewareFunc get middleware with given name

(name string)

Source from the content-addressed store, hash-verified

167
168// GetMiddlewareFunc get middleware with given name
169func (app *DotWeb) GetMiddlewareFunc(name string) (MiddlewareFunc, bool) {
170 app.middlewareMutex.RLock()
171 v, exists := app.middlewareMap[name]
172 app.middlewareMutex.RUnlock()
173 return v, exists
174}
175
176// GlobalUniqueID return app's GlobalUniqueID
177// it will be Initializationed when StartServer

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected