feature

package
v1.202.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 14 Imported by: 8

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.3

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.3

func NewFeatureProvider(params ClientParams) openfeature.FeatureProvider

NewFeatureProvider for feature.

func Ping added in v1.191.3

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