Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature string
Feature is a string representation of a set of enabled/disabled features.
const ( // PartialResponse feature enables response filtering PartialResponse Feature = "PartialResponse" )
type FeatureGate ¶
type FeatureGate interface {
// Get returns true if the key is enabled.
Get(f Feature) *atomic.Bool
// Set parses and stores flag gates for known features
// from a string like feature1=true,feature2=false,...
Set(value string) error
// String returns a string representation of the known features
// in the following form feature1=true,feature2=false,...
String() string
// Enable will enable a feature
Enable(f Feature)
// Disable will disable a feature
Disable(f Feature)
}
FeatureGate provides a interface to manipulate features.
Click to show internal directories.
Click to hide internal directories.