launchdarkly

package
v0.0.0-...-98cd694 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingHTTPClient = errors.New("missing HTTP launchDarklyClient")
	ErrNilConfig         = errors.New("missing config")
	ErrMissingSDKKey     = errors.New("missing SDK key")
)

Functions

func NewFeatureFlagManager

func NewFeatureFlagManager(cfg *Config, logger logging.Logger, tracerProvider tracing.TracerProvider, httpClient *http.Client, configModifiers ...func(ld.Config) ld.Config) (featureflags.FeatureFlagManager, error)

NewFeatureFlagManager constructs a new featureFlagManager.

Types

type Config

type Config struct {
	SDKKey      string        `json:"sdkKey"      toml:"sdk_key"`
	InitTimeout time.Duration `json:"initTimeout" toml:"init_timeout"`
}

Jump to

Keyboard shortcuts

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