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:
@@ -13,7 +13,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
context.SetHandlerName("iris/middleware/basicauth.*", "Basic Authentication")
|
||||
context.SetHandlerName("iris/middleware/basicauth.*", "iris.basicauth")
|
||||
}
|
||||
|
||||
type (
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
context.SetHandlerName("iris/middleware/hcaptcha.*", "hCaptcha")
|
||||
context.SetHandlerName("iris/middleware/hcaptcha.*", "iris.hCaptcha")
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
context.SetHandlerName("iris/middleware/logger.*", "Request Logger")
|
||||
context.SetHandlerName("iris/middleware/logger.*", "iris.logger")
|
||||
}
|
||||
|
||||
type requestLoggerMiddleware struct {
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
context.SetHandlerName("iris/middleware/recaptcha.*", "reCAPTCHA")
|
||||
context.SetHandlerName("iris/middleware/recaptcha.*", "iris.reCAPTCHA")
|
||||
}
|
||||
|
||||
const (
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user