featureflags

package
v1.10.5 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 0 Imported by: 8 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Boolean(flagName string, storeID string) bool
}

func NewDefaultClient

func NewDefaultClient(flags []string) Client

NewDefaultClient creates a default feature flag client which takes in a static list of enabled feature flag names and stores them as keys in a map.

func NewHardcodedBooleanClient

func NewHardcodedBooleanClient(result bool) Client

NewHardcodedBooleanClient creates a hardcodedBooleanClient which always returns the value of `result` it's given. The hardcodedBooleanClient is used in testing and in shadow code paths where we want to force enable/disable a feature.

func NewNoopFeatureFlagClient

func NewNoopFeatureFlagClient() Client

Jump to

Keyboard shortcuts

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