OwnerDesc holds the information of a partition owner.
| 242 | |
| 243 | // OwnerDesc holds the information of a partition owner. |
| 244 | type OwnerDesc struct { |
| 245 | // Partition that belongs to this owner. A owner can own only 1 partition, but 1 partition can be |
| 246 | // owned by multiple owners. |
| 247 | OwnedPartition int32 `protobuf:"varint,1,opt,name=ownedPartition,proto3" json:"ownedPartition,omitempty"` |
| 248 | // The owner state. This field is used to propagate deletions via memberlist. |
| 249 | State OwnerState `protobuf:"varint,2,opt,name=state,proto3,enum=ring.OwnerState" json:"state,omitempty"` |
| 250 | // Unix timestamp (with seconds precision) of when the data for the owner has been updated the last time. |
| 251 | // This timestamp is used to resolve conflicts when merging updates via memberlist (the most recent |
| 252 | // update wins). |
| 253 | UpdatedTimestamp int64 `protobuf:"varint,3,opt,name=updatedTimestamp,proto3" json:"updatedTimestamp,omitempty"` |
| 254 | } |
| 255 | |
| 256 | func (m *OwnerDesc) Reset() { *m = OwnerDesc{} } |
| 257 | func (*OwnerDesc) ProtoMessage() {} |
nothing calls this directly
no outgoing calls
no test coverage detected