featureflags

package
v0.0.0-...-98cd694 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureFlagManager

type FeatureFlagManager interface {
	Identify(ctx context.Context, user *types.User) error
	CanUseFeature(ctx context.Context, userID, feature string) (bool, error)
	Close() error
}

FeatureFlagManager manages feature flags.

func NewNoopFeatureFlagManager

func NewNoopFeatureFlagManager() FeatureFlagManager

type NoopFeatureFlagManager

type NoopFeatureFlagManager struct{}

NoopFeatureFlagManager is a no-op FeatureFlagManager.

func (*NoopFeatureFlagManager) CanUseFeature

CanUseFeature implements the FeatureFlagManager interface.

func (*NoopFeatureFlagManager) Close

func (*NoopFeatureFlagManager) Close() error

Close implements the FeatureFlagManager interface.

func (*NoopFeatureFlagManager) Identify

Identify implements the FeatureFlagManager interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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