PartitionRingDesc holds the state of the partitions ring.
| 96 | |
| 97 | // PartitionRingDesc holds the state of the partitions ring. |
| 98 | type PartitionRingDesc struct { |
| 99 | // Mapping between partition ID and partition info. |
| 100 | Partitions map[int32]PartitionDesc `protobuf:"bytes,1,rep,name=partitions,proto3" json:"partitions" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 101 | // Mapping between instance ID and partition ownership info. |
| 102 | Owners map[string]OwnerDesc `protobuf:"bytes,2,rep,name=owners,proto3" json:"owners" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 103 | } |
| 104 | |
| 105 | func (m *PartitionRingDesc) Reset() { *m = PartitionRingDesc{} } |
| 106 | func (*PartitionRingDesc) ProtoMessage() {} |
nothing calls this directly
no outgoing calls
no test coverage detected