1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-06 11:37:06 +00:00

more route info improvements

Former-commit-id: ccbe95de0badb1bf448fcc443cecda60772716dc
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-04-28 22:34:36 +03:00
parent 128cd255cb
commit 2a4043a3c2
14 changed files with 147 additions and 61 deletions

View File

@@ -13,7 +13,7 @@ import (
)
func init() {
context.SetHandlerName("iris/middleware/basicauth.*", "Basic Authentication")
context.SetHandlerName("iris/middleware/basicauth.*", "iris.basicauth")
}
type (

View File

@@ -11,7 +11,7 @@ import (
)
func init() {
context.SetHandlerName("iris/middleware/hcaptcha.*", "hCaptcha")
context.SetHandlerName("iris/middleware/hcaptcha.*", "iris.hCaptcha")
}
var (

View File

@@ -12,7 +12,7 @@ import (
)
func init() {
context.SetHandlerName("iris/middleware/logger.*", "Request Logger")
context.SetHandlerName("iris/middleware/logger.*", "iris.logger")
}
type requestLoggerMiddleware struct {

View File

@@ -12,7 +12,7 @@ import (
)
func init() {
context.SetHandlerName("iris/middleware/pprof.*", "Profiling")
context.SetHandlerName("iris/middleware/pprof.*", "iris.profiling")
}
// New returns a new pprof (profile, cmdline, symbol, goroutine, heap, threadcreate, debug/block) Middleware.

View File

@@ -12,7 +12,7 @@ import (
)
func init() {
context.SetHandlerName("iris/middleware/recaptcha.*", "reCAPTCHA")
context.SetHandlerName("iris/middleware/recaptcha.*", "iris.reCAPTCHA")
}
const (

View File

@@ -10,7 +10,7 @@ import (
)
func init() {
context.SetHandlerName("iris/middleware/recover.*", "Panic Recover")
context.SetHandlerName("iris/middleware/recover.*", "iris.recover")
}
func getRequestLogs(ctx context.Context) string {