MCPcopy Create free account
hub / github.com/LockGit/gochat / GetAllConnectTypeRpcClient

Method GetAllConnectTypeRpcClient

task/rpc.go:59–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func (rc *RpcConnectClient) GetAllConnectTypeRpcClient() (rpcClientList []client.XClient) {
60 for serverId, _ := range rc.ServerInsMap {
61 c, err := rc.GetRpcClientByServerId(serverId)
62 if err != nil {
63 logrus.Infof("GetAllConnectTypeRpcClient err:%s", err.Error())
64 continue
65 }
66 rpcClientList = append(rpcClientList, c)
67 }
68 return
69}
70
71func getParamByKey(s string, key string) string {
72 params := strings.Split(s, "&")

Callers 3

Calls 1

Tested by

no test coverage detected