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.
Click to show internal directories.
Click to hide internal directories.