MCPcopy Create free account
hub / github.com/cortexproject/cortex / WithDefaultResolver

Function WithDefaultResolver

pkg/util/users/resolver.go:14–16  ·  view source on GitHub ↗

WithDefaultResolver updates the resolver used for the package methods.

(r Resolver)

Source from the content-addressed store, hash-verified

12
13// WithDefaultResolver updates the resolver used for the package methods.
14func WithDefaultResolver(r Resolver) {
15 defaultResolver = r
16}
17
18// TenantID returns exactly a single tenant ID from the context. It should be
19// used when a certain endpoint should only support exactly a single

Calls

no outgoing calls