Documentation
¶
Index ¶
Constants ¶
View Source
const ( RolloutEnabledZero = 0.0 RolloutEnabledFull = 1.0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlagConfig ¶
type FlagConfig struct { Name string `yaml:"name"` Parameters []string `yaml:"parameters"` Rollout []RolloutRule `yaml:"rollout"` }
type Flags ¶
type Flags struct {
// contains filtered or unexported fields
}
Flags holds all the flag rules for a given context.
type Parameters ¶
Parameters are arguments to Enabled calls for specific contexts.
type RolloutRule ¶
type RolloutRule struct { // Match filters the parameters the flag applies to. Match Predicate `yaml:"match"` // EnabledRatio is the fraction of parameters to // randomly and consistently select for the flag // to be enabled for. It should be on the // interval [0.0,1.0]. EnabledRatio float64 `yaml:"enabled_ratio"` }
RolloutRule is a specific cohort to enable the flag for according to some split percentage.
Click to show internal directories.
Click to hide internal directories.