ws_router.go 746 B

12345678910111213141516171819202122232425
  1. package router
  2. import (
  3. "go-admin/app/observe/apis"
  4. "go-admin/common/ws"
  5. "github.com/gin-gonic/gin"
  6. )
  7. func init() {
  8. // routerCheckRole = append(routerCheckRole, wsNoCheckRouter)
  9. routerNoCheckRole = append(routerNoCheckRole, wsNoCheckRouter)
  10. }
  11. func wsNoCheckRouter(v1 *gin.RouterGroup) {
  12. api := apis.Service{}
  13. r := v1.Group("/ws")
  14. {
  15. r.GET("/runtime/:channel", ws.WebsocketManager.WSClient)
  16. // r.GET("/topology/services/ws", ws.WebsocketManager.ServiceTopoGraphWSClient) //service topo
  17. r.GET("/topology/services/ws", api.Topology) //service topo
  18. r.GET("/topology/processes/ws", ws.WebsocketManager.WSClient) //processes topo
  19. r.GET("/topology/container", ws.WebsocketManager.WSClient) //container topo
  20. }
  21. }