add more tips for admin
Showing
1 changed file
with
8 additions
and
1 deletions
| ... | @@ -40,7 +40,14 @@ func init() { | ... | @@ -40,7 +40,14 @@ func init() { |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | func AdminIndex(rw http.ResponseWriter, r *http.Request) { | 42 | func AdminIndex(rw http.ResponseWriter, r *http.Request) { |
| 43 | rw.Write([]byte("Welcome to Admin Dashboard")) | 43 | rw.Write([]byte("Welcome to Admin Dashboard\n")) |
| 44 | rw.Write([]byte("There are servral functions:\n")) | ||
| 45 | rw.Write([]byte("1. Record all request and request time, http://localhost:8088/qps\n")) | ||
| 46 | rw.Write([]byte("2. Get runtime profiling data by the pprof, http://localhost:8088/prof\n")) | ||
| 47 | rw.Write([]byte("3. Get healthcheck result from http://localhost:8088/prof\n")) | ||
| 48 | rw.Write([]byte("4. Get current task infomation from taskhttp://localhost:8088/task \n")) | ||
| 49 | rw.Write([]byte("5. To run a task passed a param http://localhost:8088/runtask\n")) | ||
| 50 | |||
| 44 | } | 51 | } |
| 45 | 52 | ||
| 46 | func QpsIndex(rw http.ResponseWriter, r *http.Request) { | 53 | func QpsIndex(rw http.ResponseWriter, r *http.Request) { | ... | ... |
-
Please register or sign in to post a comment