Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
f64e6b72
Unverified
Commit
f64e6b72
authored
Oct 28, 2018
by
astaxie
Committed by
GitHub
Oct 28, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3362 from SmartBrave/develop
modify qbs to qps
parents
4e83b440
8217817a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
admin.go
admin.go
+3
-3
No files found.
admin.go
View file @
f64e6b72
...
@@ -35,7 +35,7 @@ import (
...
@@ -35,7 +35,7 @@ import (
var
beeAdminApp
*
adminApp
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 q
b
s for this request by condition of this function logic.
// if this func returns, admin module records q
p
s for this request by condition of this function logic.
// usage:
// usage:
// func MyFilterMonitor(method, requestPath string, t time.Duration, pattern string, statusCode int) bool {
// func MyFilterMonitor(method, requestPath string, t time.Duration, pattern string, statusCode int) bool {
// if method == "POST" {
// if method == "POST" {
...
@@ -71,8 +71,8 @@ func adminIndex(rw http.ResponseWriter, _ *http.Request) {
...
@@ -71,8 +71,8 @@ func adminIndex(rw http.ResponseWriter, _ *http.Request) {
execTpl
(
rw
,
map
[
interface
{}]
interface
{}{},
indexTpl
,
defaultScriptsTpl
)
execTpl
(
rw
,
map
[
interface
{}]
interface
{}{},
indexTpl
,
defaultScriptsTpl
)
}
}
// QpsIndex is the http.Handler for writing q
b
s statistics map result info in http.ResponseWriter.
// QpsIndex is the http.Handler for writing q
p
s statistics map result info in http.ResponseWriter.
// it's registered with url pattern "/q
b
s" in admin module.
// it's registered with url pattern "/q
p
s" in admin module.
func
qpsIndex
(
rw
http
.
ResponseWriter
,
_
*
http
.
Request
)
{
func
qpsIndex
(
rw
http
.
ResponseWriter
,
_
*
http
.
Request
)
{
data
:=
make
(
map
[
interface
{}]
interface
{})
data
:=
make
(
map
[
interface
{}]
interface
{})
data
[
"Content"
]
=
toolbox
.
StatisticsMap
.
GetMap
()
data
[
"Content"
]
=
toolbox
.
StatisticsMap
.
GetMap
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment