Skip to content

v2.6.0

Latest
Compare
Choose a tag to compare
@wind-c wind-c released this 08 Aug 15:01
· 9 commits to main since this release
  1. Added restfull apis of mqtt and cluster
  2. Upgrade go version from 1.21 to 1.22
  3. 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