Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateOrCreateFeature ¶
func UpdateOrCreateFeature(req *FeatureReq) error
Types ¶
type FeatureGates ¶
var Features FeatureGates = map[Feature]bool{ ModernWorkflow: false, CommunityProjectRepository: false, UserRegistration: true, }
func DBToFeatureGates ¶
func DBToFeatureGates() (FeatureGates, error)
func FlagToFeatureGates ¶
func FlagToFeatureGates(s string) (FeatureGates, error)
func (FeatureGates) EnabledFeatures ¶
func (fg FeatureGates) EnabledFeatures() []Feature
func (FeatureGates) FeatureEnabled ¶
func (fg FeatureGates) FeatureEnabled(f Feature) bool
func (FeatureGates) MergeFeatureGates ¶
func (fg FeatureGates) MergeFeatureGates(fs ...FeatureGates)
MergeFeatureGates merge feature config from different source latter feature configs will be overridden by former ones
type FeatureReq ¶
Click to show internal directories.
Click to hide internal directories.