Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ProviderLaunchDarkly is used to indicate the LaunchDarkly provider. ProviderLaunchDarkly = "launchdarkly" // ProviderPostHog is used to indicate the PostHog provider. ProviderPostHog = "posthog" )
Variables ¶
View Source
var ( ProvidersFeatureFlags = wire.NewSet( ProvideFeatureFlagManager, ) )
Functions ¶
func ProvideFeatureFlagManager ¶
func ProvideFeatureFlagManager(c *Config, logger logging.Logger, tracerProvider tracing.TracerProvider, httpClient *http.Client) (featureflags.FeatureFlagManager, error)
Types ¶
type Config ¶
type Config struct { LaunchDarkly *launchdarkly.Config PostHog *posthog.Config Provider string }
Config configures our feature flag managers.
func (*Config) ProvideFeatureFlagManager ¶
func (c *Config) ProvideFeatureFlagManager(logger logging.Logger, tracerProvider tracing.TracerProvider, httpClient *http.Client) (featureflags.FeatureFlagManager, error)
Click to show internal directories.
Click to hide internal directories.