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

Function NewSingleResolver

pkg/util/users/resolver.go:57–59  ·  view source on GitHub ↗

NewSingleResolver creates a tenant resolver, which restricts all requests to be using a single tenant only. This allows a wider set of characters to be used within the tenant ID and should not impose a breaking change.

()

Source from the content-addressed store, hash-verified

55// be using a single tenant only. This allows a wider set of characters to be
56// used within the tenant ID and should not impose a breaking change.
57func NewSingleResolver() *SingleResolver {
58 return &SingleResolver{}
59}
60
61type SingleResolver struct {
62}

Callers 2

TestSingleResolverFunction · 0.85
resolver.goFile · 0.85

Calls

no outgoing calls

Tested by 1

TestSingleResolverFunction · 0.68