ControlProxy/control-proxy-backend/yjs
2023-11-17 17:32:56 +08:00
..
assets refactor moduleNames 2023-11-17 17:32:56 +08:00
audit.yjs refactor moduleNames 2023-11-17 17:32:56 +08:00
ControlProxy.yjs refactor moduleNames 2023-11-17 17:32:56 +08:00
ControlProxy接口.md refactor moduleNames 2023-11-17 17:32:56 +08:00
DAC.yjs refactor moduleNames 2023-11-17 17:32:56 +08:00
manifest.json refactor moduleNames 2023-11-17 17:32:56 +08:00
networking.yjs refactor moduleNames 2023-11-17 17:32:56 +08:00
README.md refactor moduleNames 2023-11-17 17:32:56 +08:00
repodetail.yjs refactor moduleNames 2023-11-17 17:32:56 +08:00
search.yjs refactor moduleNames 2023-11-17 17:32:56 +08:00
ShanxiAuditPRoxy.yjs refactor moduleNames 2023-11-17 17:32:56 +08:00
ShanxiDataRepo.yjs refactor moduleNames 2023-11-17 17:32:56 +08:00
ShanxiGlobalRouter.yjs refactor moduleNames 2023-11-17 17:32:56 +08:00
ShanxiRegistry.yjs refactor moduleNames 2023-11-17 17:32:56 +08:00
union.yjs refactor moduleNames 2023-11-17 17:32:56 +08:00

函数名addRepo

参数

可接收JSON或是JSON字符串格式如下

{"doId":"bdware.ss/Repox"}

返回结果

code为0表示成功为1表示失败。msg为失败原因。

{"msg":"success","rrt":"110ms","code":0}

函数名pingRepo

参数

可接收JSON或是JSON字符串格式如下

{"doId":"bdware.ss/Repox"}

返回结果

code为0表示成功为1表示失败。msg为失败原因。 成功的时候会返回rrt表示ping所花的时间。

{"msg":"success","rrt":"110ms","code":0}

函数名getRepoList

参数

无参数

返回结果

[
  {
    "doId":"bdware.ss/Repo13",
    "address":"tcp://127.0.0.1:20513",
    "owner":"user13",
    "version":"2.1",
    "descritpion":"这是bdware.ss的第13号数字对象仓库",
    "createDate":"2022-01-03"
  },
  {
    "doId":"bdware.ss/Repo14",
    "address":"tcp://127.0.0.1:20514",
    "owner":"user14",
    "version":"2.1",
    "descritpion":"这是bdware.ss的第14号数字对象仓库",
    "createDate":"2022-01-03"
  }]

函数名deleteRepo

参数

{"doId":"bdware.ss/Repox"}

返回结果

{"msg":"success","code":0}

函数名deleteRepoList

参数

[{"doId":"bdware.ss/Repox"},{"doId":"bdware.ss/Repoy"}]

返回结果

{"msg":"success","code":0}

函数名updateRepo

参数

 {
    "doId":"bdware.ss/Repo14",
    "address":"tcp://127.0.0.1:20514",
    "owner":"user14",
    "version":"2.1",
    "descritpion":"这是bdware.ss的第14号数字对象仓库",
  }

返回结果

{"msg":"success","code":0}