Releases: wind-c/comqtt
v2.6.0
- Added restfull apis of mqtt and cluster
- Upgrade go version from 1.21 to 1.22
- Upgrade the versions of several third-party libraries
Restfull apis:
GET /api/v1/mqtt/config : [single] get configuration parameters of mqtt server
GET /api/v1/mqtt/stat/overall : [single] get mqtt server info
GET /api/v1/mqtt/stat/online : [single] get online number
GET /api/v1/mqtt/clients/{id} : [single] get a client info
GET /api/v1/mqtt/blacklist : [single/cluster] get blacklist, each node in the cluster has the same blacklist
POST /api/v1/mqtt/blacklist/{id} : [single] disconnect the client and add it to the blacklist
DELETE api/v1/mqtt/blacklist/{id} : [single] remove from the blacklist
POST /api/v1/mqtt/message : [single/cluster] publish message to subscribers in the cluster, body {topic_name: "xxx", payload: "xxx", retain: true/false, qos: 1}
GET /api/v1/node/config : [cluster] get configuration parameters of node
DELETE /api/v1/node/{name} : [cluster] leave local node gracefully exits the cluster
GET /api/v1/cluster/nodes : [cluster] get all nodes in the cluster
POST /api/v1/cluster/nodes : [cluster] add a node to the cluster, body {name: "xx", addr: "ip:port"}
POST /api/v1/cluster/peers : [cluster] add peer to raft cluster, body {name: "xx", addr: "ip:port"}
DELETE /api/v1/cluster/peers/{name} : [cluster] remove peer from raft cluster
GET /api/v1/cluster/stat/online : [cluster] online number from all nodes in the cluster
GET /api/v1/cluster/clients/{id} : [cluster] get a client information, search from all nodes in the cluster
POST /api/v1/cluster/blacklist/{id} : [cluster] add clientId to the blacklist on all nodes in the cluster
DELETE /api/v1/cluster/blacklist/{id} : [cluster] remove from the blacklist on all nodes in the cluster
v2.5.6
v2.5.5
v2.5.4
v2.5.3
v2.5.2
1.Add and fix failed test cases.
2.Optimize the judgment logic of cluster/raft/base#KV.
Full Changelog: v2.5.1...v2.5.2