featureflags

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (

	//nolint:stylecheck
	FeatureOIDC = "FEATURE_PREVIEW_OIDC_DB_ACCESS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvLister

type EnvLister func() []string

type FeatureFlags

type FeatureFlags struct {
	// contains filtered or unexported fields
}

func NewFeatureFlags

func NewFeatureFlags(envVarsLister EnvLister) *FeatureFlags

NewFeatureFlags creates a new instance of FeatureFlags and reads feature flags from the ENV

func (*FeatureFlags) GetFeatureValue

func (f *FeatureFlags) GetFeatureValue(featureName string) string

func (*FeatureFlags) IsFeaturePresent

func (f *FeatureFlags) IsFeaturePresent(featureName string) bool

Jump to

Keyboard shortcuts

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