Documentation ¶
Index ¶
- type Feature
- type Rollout
- func (r *Rollout) Activate(feature string)
- func (r *Rollout) Deactivate(feature string)
- func (r Rollout) Get(feature string) (Feature, bool)
- func (r Rollout) GetAll() []Feature
- func (r Rollout) IsActive(feature string, id string) bool
- func (r Rollout) IsFeatureActive(feature string) bool
- func (r *Rollout) Set(feature Feature)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶
Feature struct keeps the main information of a feature as: identification, the percentage of users that will be affected and status
type Rollout ¶
type Rollout struct {
// contains filtered or unexported fields
}
Rollout component struct
func (*Rollout) Activate ¶
Activate active a feature if the feature does not exists the action is ignored
func (*Rollout) Deactivate ¶
Deactivate deactivate a feature if the feature does not exists the action is ignored
func (Rollout) IsFeatureActive ¶
IsFeatureActive checks if a feature is active
Click to show internal directories.
Click to hide internal directories.