Documentation ¶
Index ¶
- func NewFeatureFlagFetcher(config cli.FeatureFlagConfig) (services.FeatureFlagFetcher, error)
- type EnvFetcher
- func (ef *EnvFetcher) GetBooleanFlag(ctx context.Context, logger *zap.Logger, entityID string, key string, ...) (services.FeatureFlag, error)
- func (ef *EnvFetcher) GetBooleanFlagForUser(ctx context.Context, appCtx appcontext.AppContext, key string, ...) (services.FeatureFlag, error)
- func (ef *EnvFetcher) GetVariantFlag(ctx context.Context, logger *zap.Logger, entityID string, key string, ...) (services.FeatureFlag, error)
- func (ef *EnvFetcher) GetVariantFlagForUser(ctx context.Context, appCtx appcontext.AppContext, key string, ...) (services.FeatureFlag, error)
- type FliptFetcher
- func (ff *FliptFetcher) GetBooleanFlag(ctx context.Context, logger *zap.Logger, entityID string, key string, ...) (services.FeatureFlag, error)
- func (ff *FliptFetcher) GetBooleanFlagForUser(ctx context.Context, appCtx appcontext.AppContext, key string, ...) (services.FeatureFlag, error)
- func (ff *FliptFetcher) GetConfig() cli.FeatureFlagConfig
- func (ff *FliptFetcher) GetVariantFlag(ctx context.Context, logger *zap.Logger, entityID string, key string, ...) (services.FeatureFlag, error)
- func (ff *FliptFetcher) GetVariantFlagForUser(ctx context.Context, appCtx appcontext.AppContext, key string, ...) (services.FeatureFlag, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFeatureFlagFetcher ¶
func NewFeatureFlagFetcher(config cli.FeatureFlagConfig) (services.FeatureFlagFetcher, error)
Types ¶
type EnvFetcher ¶
type EnvFetcher struct {
// contains filtered or unexported fields
}
EnvFetcher is a way to use environment variables as feature flags which is basically how we used to support feature flags. Also helpful for local testing
func NewEnvFetcher ¶
func NewEnvFetcher(config cli.FeatureFlagConfig) (*EnvFetcher, error)
func (*EnvFetcher) GetBooleanFlag ¶
func (*EnvFetcher) GetBooleanFlagForUser ¶
func (ef *EnvFetcher) GetBooleanFlagForUser(ctx context.Context, appCtx appcontext.AppContext, key string, flagContext map[string]string) (services.FeatureFlag, error)
func (*EnvFetcher) GetVariantFlag ¶
func (*EnvFetcher) GetVariantFlagForUser ¶
func (ef *EnvFetcher) GetVariantFlagForUser(ctx context.Context, appCtx appcontext.AppContext, key string, flagContext map[string]string) (services.FeatureFlag, error)
type FliptFetcher ¶
type FliptFetcher struct {
// contains filtered or unexported fields
}
func NewFliptFetcher ¶
func NewFliptFetcher(config cli.FeatureFlagConfig) (*FliptFetcher, error)
func NewFliptFetcherWithClient ¶
func NewFliptFetcherWithClient(config cli.FeatureFlagConfig, httpClient *http.Client) (*FliptFetcher, error)
func (*FliptFetcher) GetBooleanFlag ¶
func (*FliptFetcher) GetBooleanFlagForUser ¶
func (ff *FliptFetcher) GetBooleanFlagForUser(ctx context.Context, appCtx appcontext.AppContext, key string, flagContext map[string]string) (services.FeatureFlag, error)
func (*FliptFetcher) GetConfig ¶
func (ff *FliptFetcher) GetConfig() cli.FeatureFlagConfig
func (*FliptFetcher) GetVariantFlag ¶
func (*FliptFetcher) GetVariantFlagForUser ¶
func (ff *FliptFetcher) GetVariantFlagForUser(ctx context.Context, appCtx appcontext.AppContext, key string, flagContext map[string]string) (services.FeatureFlag, error)
Click to show internal directories.
Click to hide internal directories.