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

Method CanJoin

ring/token_generator.go:18–18  ·  view source on GitHub ↗

CanJoin checks whether the instance owning this TokenGenerator can join the set of the given instances satisfies, and fails if it is not possible.

(instances map[string]InstanceDesc)

Source from the content-addressed store, hash-verified

16 // CanJoin checks whether the instance owning this TokenGenerator can join the set of the given instances satisfies,
17 // and fails if it is not possible.
18 CanJoin(instances map[string]InstanceDesc) error
19
20 // CanJoinEnabled returns true if the instance owning this TokenGenerator should perform the CanJoin check before
21 // it tries to join the ring.

Callers 3

CanJoinMethod · 0.65
waitBeforeJoiningMethod · 0.65

Implementers 2

RandomTokenGeneratorring/token_generator.go
SpreadMinimizingTokenGeneratorring/spread_minimizing_token_generator

Calls

no outgoing calls

Tested by 2

CanJoinMethod · 0.52