feature

package
v1.332.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

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 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 `optional:"true"`
	Name            env.Name
}

ProviderParams for feature.

Jump to

Keyboard shortcuts

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