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.
Click to show internal directories.
Click to hide internal directories.