1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 03:00:49 +00:00

updated sample for FilterMonitorFunc

added pattern to sample
This commit is contained in:
Gerson Alexander Pardo Gamez 2017-07-12 09:51:37 -05:00 committed by GitHub
parent 7f2e3feb3c
commit c903de41e4

View File

@ -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
// }