featureflag

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DynamicPlugins   = newFeatureFlag("EXPERIMENTAL_DYNAMIC_PLUGINS", false)
	CertRotation     = newFeatureFlag("CERT_ROTATION", false)
	HighAvailability = newFeatureFlag("EXPERIMENTAL_HIGH_AVAILABILITY", false)
)

Feature flags are used to enable/disable experimental features. They are activated via environment variables, starting with "RATIFY_", ex: RATIFY_EXPERIMENTAL_DYNAMIC_PLUGINS=1 Remember to capture changes in the usage guide and release notes.

Functions

func InitFeatureFlagsFromEnv

func InitFeatureFlagsFromEnv()

Types

type FeatureFlag

type FeatureFlag struct {
	Name    string
	Enabled bool
}

Jump to

Keyboard shortcuts

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