package et_rpc type RPCReplyCode int type NodeState int const ( NodeState_Healthy NodeState = iota NodeState_Unhealthy ) const ( RPCReply_Success RPCReplyCode = iota RPCReply_Failure ) type NodeArgs struct { ID string Addr string Load int // 节点荷载(主要为积压的数据量) ResourceJson string // CPU\内存\硬盘 使用情况JSON Weight int // 权重(暂时未用到) Status NodeState // 节点状态(健康 | 不健康) ErrCode RPCReplyCode // RPCReply_Success | RPCReply_Failure ErrMessage string }