featureflag

package
v1.42.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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