MCPcopy Create free account
hub / github.com/kataras/iris / LastApplication

Function LastApplication

context/application.go:171–181  ·  view source on GitHub ↗

LastApplication returns the last registered Application. Handlers has access to the current Application, use `Context.Application()` instead.

()

Source from the content-addressed store, hash-verified

169// Handlers has access to the current Application,
170// use `Context.Application()` instead.
171func LastApplication() Application {
172 mu.RLock()
173 for i := len(registeredApps) - 1; i >= 0; i-- {
174 if app := registeredApps[i]; app != nil {
175 mu.RUnlock()
176 return app
177 }
178 }
179 mu.RUnlock()
180 return nil
181}
182
183// GetApplication returns a registered Application
184// based on its name. If the "appName" is not unique

Callers 2

GetFunction · 0.92
DefaultLoggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…