Help us shape the future of Go! Take the 2026 Go Developer Survey

featureflag

package
v0.9.51 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IFeatureFlag added in v0.9.49

type IFeatureFlag interface {
	GetName() string
	ScriptsSingleInstance() []app.IScript
	ScriptsMultiInstance() []app.IScript
}

type ServiceFeatureFlagInterface

type ServiceFeatureFlagInterface interface {
	IsActive(ormService *beeorm.Engine, name string) bool
	FailIfIsNotActive(ormService *beeorm.Engine, name string) error
	Activate(ormService *beeorm.Engine, name string) error
	DeActivate(ormService *beeorm.Engine, name string) error
	Create(ormService *beeorm.Engine, clockService clock.IClock, name string, isActive bool) error
	Delete(ormService *beeorm.Engine, name string) error
	GetAll(ormService *beeorm.Engine, pager *beeorm.Pager) []*entity.FeatureFlagEntity
	GetScriptsSingleInstance(ormService *beeorm.Engine) []app.IScript
	GetScriptsMultiInstance(ormService *beeorm.Engine) []app.IScript
	Register(featureFlags ...IFeatureFlag)
	Sync(ormService *beeorm.Engine, clockService clock.IClock)
}

func NewFeatureFlagService

func NewFeatureFlagService(errorLoggerService errorlogger.ErrorLogger) ServiceFeatureFlagInterface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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