Member stores information about RAFT group member for a single RAFT node. Note that each server can be serving multiple RAFT groups. Each group would have one RAFT node per server serving that group.
| 1068 | // Note that each server can be serving multiple RAFT groups. Each group would have |
| 1069 | // one RAFT node per server serving that group. |
| 1070 | type Member struct { |
| 1071 | Id uint64 `protobuf:"fixed64,1,opt,name=id,proto3" json:"id,omitempty"` |
| 1072 | GroupId uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"groupId,omitempty"` |
| 1073 | Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"` |
| 1074 | Leader bool `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"` |
| 1075 | AmDead bool `protobuf:"varint,5,opt,name=am_dead,json=amDead,proto3" json:"amDead,omitempty"` |
| 1076 | LastUpdate uint64 `protobuf:"varint,6,opt,name=last_update,json=lastUpdate,proto3" json:"lastUpdate,omitempty"` |
| 1077 | Learner bool `protobuf:"varint,7,opt,name=learner,proto3" json:"learner,omitempty"` |
| 1078 | ClusterInfoOnly bool `protobuf:"varint,13,opt,name=cluster_info_only,json=clusterInfoOnly,proto3" json:"clusterInfoOnly,omitempty"` |
| 1079 | ForceGroupId bool `protobuf:"varint,14,opt,name=force_group_id,json=forceGroupId,proto3" json:"forceGroupId,omitempty"` |
| 1080 | } |
| 1081 | |
| 1082 | func (m *Member) Reset() { *m = Member{} } |
| 1083 | func (m *Member) String() string { return proto.CompactTextString(m) } |
nothing calls this directly
no outgoing calls
no test coverage detected