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

Method Get

ring/ring.go:84–84  ·  ring/ring.go::ReadRing.Get

Get returns n (or more) instances which form the replicas for the given key. bufDescs, bufHosts and bufZones are slices to be overwritten for the return value to avoid memory allocation; can be nil, or created with ring.MakeBuffersForGet().

(key uint32, op Operation, bufDescs []InstanceDesc, bufHosts, bufZones []string)

Source from the content-addressed store, hash-verified

82 // bufDescs, bufHosts and bufZones are slices to be overwritten for the return value
83 // to avoid memory allocation; can be nil, or created with ring.MakeBuffersForGet().
84 Get(key uint32, op Operation, bufDescs []InstanceDesc, bufHosts, bufZones []string) (ReplicationSet, error)
85
86 // GetWithOptions returns n (or more) instances which form the replicas for the given key
87 // with 0 or more Option instances to change the behavior of the method call.

Callers 15

getRingMethod · 0.65
getInstanceFromStoreFunction · 0.65
conflictingTokensExistFunction · 0.65
startingMethod · 0.65
GetMethod · 0.65
GetWithOptionsMethod · 0.65
GetAllHealthyMethod · 0.65
ShuffleShardMethod · 0.65
GetInstanceStateMethod · 0.65

Implementers 2

Ringring/ring.go
RingMockring/util_test.go

Calls

no outgoing calls

Tested by 15

getInstanceFromStoreFunction · 0.52
GetMethod · 0.52
GetWithOptionsMethod · 0.52
GetAllHealthyMethod · 0.52
ShuffleShardMethod · 0.52
GetInstanceStateMethod · 0.52
BenchmarkRing_GetFunction · 0.52