import "github.com/go-coldbrew/feature-flags"
- Constants
- func GetVariant(name string, ctx engines.Context) *engines.Variant
- func Initialize(appName string, cfg config.Config) error
- func IsEnabled(name string, ctx engines.Context) bool
const (
EngineUnleash = "unleash"
)
func GetVariant
func GetVariant(name string, ctx engines.Context) *engines.Variant
GetVariant get variant for a feature flag, returns disabled variant if client is not initialised
func Initialize
func Initialize(appName string, cfg config.Config) error
Initialize initializes an engines.FeatureFlag instance, return error if failed
func IsEnabled
func IsEnabled(name string, ctx engines.Context) bool
IsEnabled check if a feature flag is enabled, returns false if client is not initialized
Generated by gomarkdoc