Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d603a671
authored
2013-12-12 21:51:17 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add more tips for admin
1 parent
c8724d40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
admin.go
admin.go
View file @
d603a67
...
...
@@ -40,7 +40,14 @@ func init() {
}
func
AdminIndex
(
rw
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
rw
.
Write
([]
byte
(
"Welcome to Admin Dashboard"
))
rw
.
Write
([]
byte
(
"Welcome to Admin Dashboard
\n
"
))
rw
.
Write
([]
byte
(
"There are servral functions:
\n
"
))
rw
.
Write
([]
byte
(
"1. Record all request and request time, http://localhost:8088/qps
\n
"
))
rw
.
Write
([]
byte
(
"2. Get runtime profiling data by the pprof, http://localhost:8088/prof
\n
"
))
rw
.
Write
([]
byte
(
"3. Get healthcheck result from http://localhost:8088/prof
\n
"
))
rw
.
Write
([]
byte
(
"4. Get current task infomation from taskhttp://localhost:8088/task
\n
"
))
rw
.
Write
([]
byte
(
"5. To run a task passed a param http://localhost:8088/runtask
\n
"
))
}
func
QpsIndex
(
rw
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment