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

Function NewLimitsMapWithData

flagext/map.go:20–25  ·  view source on GitHub ↗
(data map[string]T, validator func(k string, v T) error)

Source from the content-addressed store, hash-verified

18}
19
20func NewLimitsMapWithData[T float64 | int | string](data map[string]T, validator func(k string, v T) error) LimitsMap[T] {
21 return LimitsMap[T]{
22 data: data,
23 validator: validator,
24 }
25}
26
27// IsInitialized returns true if the map is initialized.
28func (m LimitsMap[T]) IsInitialized() bool {

Callers 1

NewLimitsMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected