featuretoggles

package
v0.188.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 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 Grafarg instance.

var DefaultFeatureToggles FeatureToggles = newFeatureTogglesFromEnv()

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

Jump to

Keyboard shortcuts

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