Added experimental GraphQL server

This commit is contained in:
2019-05-10 17:36:39 +09:00
parent 3923d6bfbf
commit a42c5be666
8 changed files with 65 additions and 487 deletions

21
utils/Profiler.go Normal file
View File

@ -0,0 +1,21 @@
package utils
// import (
// "net/http"
// "net/http/pprof"
// )
// func init() {
// app.Router.HandlerFunc("GET", "/debug/pprof/", http.HandlerFunc(pprof.Index))
// app.Router.HandlerFunc("GET", "/debug/pprof/cmdline", http.HandlerFunc(pprof.Cmdline))
// app.Router.HandlerFunc("GET", "/debug/pprof/profile", http.HandlerFunc(pprof.Profile))
// app.Router.HandlerFunc("GET", "/debug/pprof/symbol", http.HandlerFunc(pprof.Symbol))
// app.Router.HandlerFunc("GET", "/debug/pprof/trace", http.HandlerFunc(pprof.Trace))
// app.Router.Handler("GET", "/debug/pprof/goroutine", pprof.Handler("goroutine"))
// app.Router.Handler("GET", "/debug/pprof/heap", pprof.Handler("heap"))
// app.Router.Handler("GET", "/debug/pprof/threadcreate", pprof.Handler("threadcreate"))
// app.Router.Handler("GET", "/debug/pprof/block", pprof.Handler("block"))
// app.Router.Handler("GET", "/debug/pprof/allocs", pprof.Handler("allocs"))
// app.Router.Handler("GET", "/debug/pprof/mutex", pprof.Handler("mutex"))
// }