Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnabledOnOrAfterKey = "enabledOnOrAfter" EnabledOnOrBeforeKey = "enabledOnOrBefore" WeekdaysKey = "days" PercentKey = "percent" )
Variables ¶
This section is empty.
Functions ¶
func GetFeatureSpanshots ¶
func InjectFeatureFactory ¶
func InjectFeatureFactory(factory FeatureFactory)
Add new FeatureFactory
Types ¶
type ConfigSource ¶
This tinterface represents a pluggable configuration source. You can plug in your own sources or use one of the built-in.
func NewJsonConfigSource ¶
func NewJsonConfigSource(path string) ConfigSource
type Feature ¶
type Feature interface {
IsEnabled() bool
}
func DefaulFactory ¶
func NewStaticFeature ¶
Create a new Feature with a static value that cannot be changed afterwards
type FeatureFactory ¶
Click to show internal directories.
Click to hide internal directories.