Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetBackend ¶
func SetBackend(backend Backend)
SetBackend for feature flag so it can be used globally
func StopUpdate ¶
func StopUpdate()
StopUpdate the feature flag means the checking to backend will be stopped
Types ¶
type Backend ¶
type Backend interface { GetString(key string) (string, error) GetBoolean(key string) (bool, error) GetInt(key string) (int, error) }
Backend of feature flag
type FeatureFlag ¶
type FeatureFlag struct {
// contains filtered or unexported fields
}
FeatureFlag struct
Click to show internal directories.
Click to hide internal directories.