feature

package
v2.167.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func NewClient

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

NewClient for feature.

func Register

func Register(params ProviderParams)

Register for feature.

Types

type Config

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

Config for feature.

func (*Config) IsEnabled added in v2.115.0

func (c *Config) IsEnabled() bool

IsEnabled for feature.

type ProviderParams

type ProviderParams struct {
	di.In
	Lifecycle       di.Lifecycle
	MetricProvider  metrics.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