feature

package
v1.265.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 8 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Module for fx.
	Module = fx.Options(
		fx.Provide(NewClient),
		fx.Invoke(Register),
	)

	// NoopModule for fx.
	NoopModule = fx.Options(
		Module,
		fx.Provide(NoopProvider),
	)
)

Functions

func IsEnabled added in v1.178.1

func IsEnabled(cfg *Config) bool

IsEnabled for feature.

func NewClient

func NewClient(name env.Name) *openfeature.Client

NewClient for feature.

func NoopProvider added in v1.265.0

func NoopProvider() openfeature.FeatureProvider

NoopProvider for feature.

func Register added in v1.265.0

func Register(params ProviderParams)

Register for feature.

Types

type Config

type Config struct {
	*client.Config `yaml:",inline" json:",inline" toml:",inline"`
}

Config for feature.

type ProviderParams added in v1.265.0

type ProviderParams struct {
	fx.In

	Lifecycle       fx.Lifecycle
	MetricProvider  metric.MeterProvider
	FeatureProvider openfeature.FeatureProvider
	Name            env.Name
}

ProviderParams for feature.

Jump to

Keyboard shortcuts

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