Documentation ¶
Index ¶
- type FeatureService
- func (interactor *FeatureService) AddFeature(newFeature m.FeatureFlag) error
- func (interactor *FeatureService) FeatureExists(featureKey string) (exists bool)
- func (interactor *FeatureService) GetFeature(featureKey string) (feature m.FeatureFlag, err error)
- func (interactor *FeatureService) GetFeatures() (features m.FeatureFlags, err error)
- func (interactor *FeatureService) RemoveFeature(featureKey string) error
- func (interactor *FeatureService) UpdateFeature(featureKey string, newFeature m.FeatureFlag) (feature m.FeatureFlag, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeatureService ¶
func (*FeatureService) AddFeature ¶
func (interactor *FeatureService) AddFeature(newFeature m.FeatureFlag) error
Store a new feature flag in the database
func (*FeatureService) FeatureExists ¶
func (interactor *FeatureService) FeatureExists(featureKey string) (exists bool)
Tell if a feature flag exists thanks to a key
func (*FeatureService) GetFeature ¶
func (interactor *FeatureService) GetFeature(featureKey string) (feature m.FeatureFlag, err error)
GetFeature gets a single feature flag thanks to its key
func (*FeatureService) GetFeatures ¶
func (interactor *FeatureService) GetFeatures() (features m.FeatureFlags, err error)
GetFeatures gets a list of feature flags
func (*FeatureService) RemoveFeature ¶
func (interactor *FeatureService) RemoveFeature(featureKey string) error
Delete a feature flag
func (*FeatureService) UpdateFeature ¶
func (interactor *FeatureService) UpdateFeature(featureKey string, newFeature m.FeatureFlag) (feature m.FeatureFlag, err error)
Update a feature flag
Click to show internal directories.
Click to hide internal directories.