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

Struct PartitionRingDesc

ring/partition_ring_desc.pb.go:98–103  ·  view source on GitHub ↗

PartitionRingDesc holds the state of the partitions ring.

Source from the content-addressed store, hash-verified

96
97// PartitionRingDesc holds the state of the partitions ring.
98type 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
105func (m *PartitionRingDesc) Reset() { *m = PartitionRingDesc{} }
106func (*PartitionRingDesc) ProtoMessage() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected