features

package
v0.0.0-...-98addd5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled(n FeatureFlag) bool

Enabled returns true if the feature is enabled or false if it isn't, it will panic if passed a feature that it doesn't know.

func Export

func Export(m *expvar.Map)

Export populates a expvar.Map with the state of all of the features.

func Reset

func Reset()

Reset resets the features to their initial state

func Set

func Set(featureSet map[string]bool) error

Set accepts a list of features and whether they should be enabled or disabled, it will return a error if passed a feature name that it doesn't know

Types

type FeatureFlag

type FeatureFlag int
const (
	IDNASupport FeatureFlag
	AllowAccountDeactivation
	AllowKeyRollover
	ResubmitMissingSCTsOnly
	GoogleSafeBrowsingV4
	UseAIAIssuerURL
	AllowTLS02Challenges
)

func (FeatureFlag) String

func (i FeatureFlag) String() string

Jump to

Keyboard shortcuts

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