|
|
@@ -14,12 +14,10 @@ func init() {
|
|
|
|
|
|
// The JoinCommand adds a node to the cluster.
|
|
|
//
|
|
|
-// The command returns two values back to binary format.
|
|
|
-// The first value is a Uvarint representing the the join_index.
|
|
|
-// The second value is a single byte flag representing whether the joining
|
|
|
-// node is a peer (0) or a proxy (1).
|
|
|
+// The command returns the join_index (Uvarint) and peer flag (peer=0, proxy=1)
|
|
|
+// in following binary format:
|
|
|
//
|
|
|
-// 8 bytes | 1 byte
|
|
|
+// 8 bytes | 1 byte
|
|
|
// join_index | join_mode
|
|
|
//
|
|
|
type JoinCommand struct {
|