featuretoggles

package
v0.259.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

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