For more details about the raft JSON-RPC APIs
Methods
(inner) addLearner(enodeId) → {Number}
Parameters:
Name | Type | Description |
---|---|---|
enodeId |
String | enode id of the learner node to be added to the network |
Returns:
Raft id for the node being added
- Type
- Number
(inner) addPeer(enodeId) → {Number}
Parameters:
Name | Type | Description |
---|---|---|
enodeId |
String | enode id of the node to be added to the network |
Returns:
Raft id for the node being added
- Type
- Number
(inner) cluster() → {Array.<raftClusterDetails>}
Returns:
result
- Type
- Array.<raftClusterDetails>
(inner) leader() → {String}
Returns:
enode id of the leader
- Type
- String
(inner) promoteToPeer(raftId) → {Boolean}
Parameters:
Name | Type | Description |
---|---|---|
raftId |
Number | Raft id of the node to be promoted |
Returns:
- Type
- Boolean
(inner) removePeer(raftId) → {null}
Parameters:
Name | Type | Description |
---|---|---|
raftId |
Number | Raft id of the node to be removed from the cluster |
Returns:
- Type
- null
(inner) role() → {String}
Returns:
Role of the node in Raft GoQuorum
- Type
- String