feature

package
v1.192.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 14 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 IsNotFoundError added in v1.191.2

func IsNotFoundError(err error) bool

IsNotFoundError for feature.

func NewClient

func NewClient(lc fx.Lifecycle, provider openfeature.FeatureProvider) *openfeature.Client

NewClient for feature.

func NewFeatureProvider added in v1.191.2

func NewFeatureProvider(params ClientParams) openfeature.FeatureProvider

NewFeatureProvider for feature.

func Ping added in v1.191.2

func Ping(ctx context.Context, client *openfeature.Client) error

Ping for feature.

Types

type ClientParams added in v1.134.0

type ClientParams struct {
	fx.In

	Config *Config
	Logger *zap.Logger
	Tracer trace.Tracer
	Meter  metric.Meter
}

RegisterParams for feature.

type Config

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

Config for feature.

func (*Config) IsFlipt added in v1.178.1

func (c *Config) IsFlipt() bool

IsFlipt configuration.

Jump to

Keyboard shortcuts

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