go-echarts / statsview

🚀 A real-time Golang runtime stats visualization profiler
MIT License
575 stars 52 forks source link

Can add custom routing function #4

Closed sxueck closed 3 years ago

sxueck commented 3 years ago

Can add a custom routing function, like this

viewer.SetConfiguration(viewer.WithTheme(viewer.ThemeWalden), viewer.WithAddr("localhost:8087"),viewer.WithViewPath("/"))
sxueck commented 3 years ago

I made some changes, but it doesn’t seem to be very compatible https://github.com/sxueck/statsview

chenjiandongx commented 3 years ago

@sxueck What's your purpose setting this option?

sxueck commented 3 years ago

I try to use the echo framework to reverse proxy this path(/debug/viewstaic) But he told me that I can only proxy the root path(/)

chenjiandongx commented 3 years ago

@sxueck You can transform statsview by yourself as I don't want to provide the feature mentioned :)

I think it would be a better choice to keep the same route-prefix with the std net/http/pprof