MCPcopy
hub / github.com/prometheus/prometheus / Set

Function Set

util/features/features.go:120–122  ·  view source on GitHub ↗

Set sets a feature to the specified enabled state in the default registry.

(category, name string, enabled bool)

Source from the content-addressed store, hash-verified

118
119// Set sets a feature to the specified enabled state in the default registry.
120func Set(category, name string, enabled bool) {
121 DefaultRegistry.Set(category, name, enabled)
122}
123
124// Get returns all features from the default registry.
125func Get() map[string]map[string]bool {

Callers 1

mainFunction · 0.92

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected