featureflags

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

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