MCPcopy Create free account
hub / github.com/DNAProject/DNA / GetConnectionCount

Function GetConnectionCount

http/base/rest/interfaces.go:59–67  ·  view source on GitHub ↗

get connection node count

(cmd map[string]interface{})

Source from the content-addressed store, hash-verified

57
58//get connection node count
59func GetConnectionCount(cmd map[string]interface{}) map[string]interface{} {
60 resp := ResponsePack(berr.SUCCESS)
61 count, err := bactor.GetConnectionCnt()
62 if err != nil {
63 return ResponsePack(berr.INTERNAL_ERROR)
64 }
65 resp["Result"] = count
66 return resp
67}
68
69func GetNodeSyncStatus(cmd map[string]interface{}) map[string]interface{} {
70 resp := ResponsePack(berr.SUCCESS)

Callers

nothing calls this directly

Calls 2

ResponsePackFunction · 0.85
GetConnectionCntMethod · 0.65

Tested by

no test coverage detected