featureflag

package
v6.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: AGPL-3.0, Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncParams

type SyncParams struct {
	ServerID            string
	SplitKey            string
	SyncIntervalSeconds int
	Log                 *mlog.Logger
	Attributes          map[string]interface{}
}

type Synchronizer

type Synchronizer struct {
	SyncParams
	// contains filtered or unexported fields
}

func NewSynchronizer

func NewSynchronizer(params SyncParams) (*Synchronizer, error)

func (*Synchronizer) Close

func (f *Synchronizer) Close()

func (*Synchronizer) EnsureReady

func (f *Synchronizer) EnsureReady() error

EnsureReady blocks until the syncronizer is ready to update feature flag values

func (*Synchronizer) UpdateFeatureFlagValues

func (f *Synchronizer) UpdateFeatureFlagValues(base model.FeatureFlags) model.FeatureFlags

Jump to

Keyboard shortcuts

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