Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiffCache ¶
type DiffCache struct { Deleted map[string]Flag `json:"deleted"` Added map[string]Flag `json:"added"` Updated map[string]DiffUpdated `json:"updated"` }
DiffCache contains the changes made in the cache, to be able to notify the user that something has changed (logs, webhook ...)
type DiffUpdated ¶
type Flag ¶
type Flag struct { Disable bool `json:"disable,omitempty"` Rule string `json:"rule,omitempty"` Percentage float64 `json:"percentage,omitempty"` True interface{} `json:"true,omitempty"` // Value if Rule applied, and in percentage False interface{} `json:"false,omitempty"` // Value if Rule applied and not in percentage Default interface{} `json:"default,omitempty"` // Value if Rule does not applied }
Flag describe the fields of a flag.
type VariationType ¶ added in v0.10.0
type VariationType string
VariationType enum which describe the decision taken
const ( VariationTrue VariationType = "True" VariationFalse VariationType = "False" VariationDefault VariationType = "Default" VariationSDKDefault VariationType = "SdkDefault" )
Click to show internal directories.
Click to hide internal directories.