featureflag

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GetAllLFSPointersGo will cause the GetAllLFSPointers RPC to use the go implementation when set
	GetAllLFSPointersGo = "get_all_lfs_pointers_go"
)

Variables

This section is empty.

Functions

func EnableFeatureFlag added in v1.60.0

func EnableFeatureFlag(ctx context.Context, flag string) context.Context

EnableFeatureFlag is used in tests to enablea a feature flag in the context metadata

func HeaderKey

func HeaderKey(flag string) string

HeaderKey returns the feature flag key to be used in the metadata map

func IsDisabled

func IsDisabled(ctx context.Context, flag string) bool

IsDisabled is the inverse operation of IsEnabled

func IsEnabled

func IsEnabled(ctx context.Context, flag string) bool

IsEnabled checks if the feature flag is enabled for the passed context. Only return true if the metadata for the feature flag is set to "true"

Types

This section is empty.

Jump to

Keyboard shortcuts

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