Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeatureGate ¶
type FeatureGate interface { // IsEnabled returns state of the feature, // if feature name is unknown will always return false IsEnabled(feature string) bool // Init set state for the features from the provided map. // completely removes the previous state Init(features map[string]bool) // String returns string representation of the feature state String() string }
FeatureGate provides methods to check state of the feature
Click to show internal directories.
Click to hide internal directories.