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 int `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.
Click to show internal directories.
Click to hide internal directories.