mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:10:54 +00:00
updated sample for FilterMonitorFunc
added pattern to sample
This commit is contained in:
parent
7f2e3feb3c
commit
c903de41e4
2
admin.go
2
admin.go
@ -37,7 +37,7 @@ var beeAdminApp *adminApp
|
||||
// FilterMonitorFunc is default monitor filter when admin module is enable.
|
||||
// if this func returns, admin module records qbs for this request by condition of this function logic.
|
||||
// usage:
|
||||
// func MyFilterMonitor(method, requestPath string, t time.Duration, statusCode int) bool {
|
||||
// func MyFilterMonitor(method, requestPath string, t time.Duration, pattern string, statusCode int) bool {
|
||||
// if method == "POST" {
|
||||
// return false
|
||||
// }
|
||||
|
Loading…
Reference in New Issue
Block a user