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
b2bd829d
Commit
b2bd829d
authored
Apr 14, 2014
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beego: add link in the admin console
parent
f9b8617f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
admin.go
admin.go
+6
-6
No files found.
admin.go
View file @
b2bd829d
...
@@ -55,12 +55,12 @@ func init() {
...
@@ -55,12 +55,12 @@ func init() {
func
adminIndex
(
rw
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
func
adminIndex
(
rw
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
rw
.
Write
([]
byte
(
"Welcome to Admin Dashboard
\n
"
))
rw
.
Write
([]
byte
(
"Welcome to Admin Dashboard
\n
"
))
rw
.
Write
([]
byte
(
"There are servral functions:
\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
(
"1. Record all request and request time,
<a href='/qps'>http://localhost:8088/qps</a>
\n
"
))
rw
.
Write
([]
byte
(
"2. Get runtime profiling data by the pprof,
http://localhost:8088/prof
\n
"
))
rw
.
Write
([]
byte
(
"2. Get runtime profiling data by the pprof,
<a href='/prof'>http://localhost:8088/prof</a>
\n
"
))
rw
.
Write
([]
byte
(
"3. Get healthcheck result from
http://localhost:8088/healthcheck
\n
"
))
rw
.
Write
([]
byte
(
"3. Get healthcheck result from
<a href='/healthcheck'>http://localhost:8088/healthcheck</a>
\n
"
))
rw
.
Write
([]
byte
(
"4. Get current task infomation from task
http://localhost:8088/task
\n
"
))
rw
.
Write
([]
byte
(
"4. Get current task infomation from task
<a href='/task'>http://localhost:8088/task</a>
\n
"
))
rw
.
Write
([]
byte
(
"5. To run a task passed a param
http://localhost:8088/runtask
\n
"
))
rw
.
Write
([]
byte
(
"5. To run a task passed a param
<a href='/runtask'>http://localhost:8088/runtask</a>
\n
"
))
rw
.
Write
([]
byte
(
"6. Get all confige & router infomation
http://localhost:8088/listconf
\n
"
))
rw
.
Write
([]
byte
(
"6. Get all confige & router infomation
<a href='/listconf'>http://localhost:8088/listconf</a>
\n
"
))
}
}
...
...
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