Commit c903de41 authored by Gerson Alexander Pardo Gamez's avatar Gerson Alexander Pardo Gamez Committed by GitHub

updated sample for FilterMonitorFunc

added pattern to sample
parent 7f2e3feb
...@@ -37,7 +37,7 @@ var beeAdminApp *adminApp ...@@ -37,7 +37,7 @@ var beeAdminApp *adminApp
// FilterMonitorFunc is default monitor filter when admin module is enable. // 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. // if this func returns, admin module records qbs for this request by condition of this function logic.
// usage: // 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" { // if method == "POST" {
// return false // return false
// } // }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment