From d603a6714d7fda74b538aca956367e4d7b42680a Mon Sep 17 00:00:00 2001 From: astaxie Date: Thu, 12 Dec 2013 21:51:17 +0800 Subject: [PATCH] add more tips for admin --- admin.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/admin.go b/admin.go index 751c8c1e..3ef71cfd 100644 --- a/admin.go +++ b/admin.go @@ -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) {