MCPcopy
hub / github.com/grafana/dskit / OwnerDesc

Struct OwnerDesc

ring/partition_ring_desc.pb.go:244–254  ·  view source on GitHub ↗

OwnerDesc holds the information of a partition owner.

Source from the content-addressed store, hash-verified

242
243// OwnerDesc holds the information of a partition owner.
244type 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
256func (m *OwnerDesc) Reset() { *m = OwnerDesc{} }
257func (*OwnerDesc) ProtoMessage() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected