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

Method With

tenant/metadata.go:204–207  ·  tenant/metadata.go::Metadata.With

With returns a new Metadata, setting key to value. It is O(n) over the size of Metadata and allocates.

(key string, val string)

Source from the content-addressed store, hash-verified

202//
203// It is O(n) over the size of Metadata and allocates.
204func (m Metadata) With(key string, val string) Metadata {
205 m.Set(key, val)
206 return m
207}
208
209// Has checks whether a specific metadata key is present.
210func (m Metadata) Has(key string) bool {

Callers 15

newMemcachedClientFunction · 0.80
WrapWithLRUCacheFunction · 0.80
newClientMetricsFunction · 0.80
NewLifecyclerMetricsFunction · 0.80
local.goFile · 0.80
SimpleMemberlistKVFunction · 0.80
SimpleRingFunction · 0.80
SimpleRingLifecyclerFunction · 0.80

Calls 1

SetMethod · 0.95