featuretoggles

package
v0.235.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnabledFeatures = "GF_INSTANCE_FEATURE_TOGGLES_ENABLE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureToggles

type FeatureToggles interface {
	// IsEnabled returns true if the provided feature flag is set.
	IsEnabled(flag string) bool
}

FeatureToggles can check if feature toggles are enabled on the Grafana instance.

var DefaultFeatureToggles FeatureToggles = newFeatureTogglesFromEnv()

DefaultFeatureToggles is the default feature toggles implementation. It contains the same feature toggles as the Grafana instance where the plugin is running.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL