Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustInitFeatureGates ¶
Types ¶
type FeatureStage ¶
type FeatureStage int
const ( INVAILD FeatureStage = 0 ALPHA FeatureStage = 1 << iota BETA STABLE ANY = ALPHA | BETA | STABLE )
type Gates ¶
type Gates interface {
Stage(key Feature) StagedFeature
}
type StagedFeature ¶
type StagedFeature interface {
Enabled(FeatureStage) bool
}
func Stage ¶
func Stage(key Feature) StagedFeature
Click to show internal directories.
Click to hide internal directories.