services

package
v0.0.0-...-30135e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureService

type FeatureService struct {
	DB *bolt.DB
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL