mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-22 09:48:33 +00:00
remove connections
This commit is contained in:
@@ -22,19 +22,6 @@ func InitHTTPMoniter(b *Broker) {
|
||||
c.JSON(200, &resp)
|
||||
})
|
||||
|
||||
router.GET("api/v1/connections", func(c *gin.Context) {
|
||||
num := 0
|
||||
b.clients.Range(func(key, value interface{}) bool {
|
||||
num++
|
||||
return true
|
||||
})
|
||||
resp := map[string]int{
|
||||
"code": 0,
|
||||
"counts": num,
|
||||
}
|
||||
c.JSON(200, &resp)
|
||||
})
|
||||
|
||||
router.GET("api/v1/nodes", func(c *gin.Context) {
|
||||
num := 0
|
||||
b.clients.Range(func(key, value interface{}) bool {
|
||||
|
||||
Reference in New Issue
Block a user