feature_flags

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

README

GoDoc

feature_flags

import "github.com/go-coldbrew/feature-flags"

Index

Constants

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

Documentation

Index

Constants

View Source
const (
	EngineUnleash = "unleash"
)

Variables

Functions

func GetVariant added in v0.1.1

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 added in v0.1.1

func Initialize(appName string, cfg config.Config) error

Initialize initializes an engines.FeatureFlag instance, return error if failed

func IsEnabled added in v0.1.1

func IsEnabled(name string, ctx engines.Context) bool

IsEnabled check if a feature flag is enabled, returns false if client is not initialized

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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