featurecontrol

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0, BSD-3-Clause Imports: 12 Imported by: 1

Documentation

Overview

*

  • Copyright 2022 Comcast Cable Communications Management, LLC *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License. *
  • SPDX-License-Identifier: Apache-2.0

*

  • Copyright 2022 Comcast Cable Communications Management, LLC *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License. *
  • SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

View Source
var GetGenericNamedListOneByTypeFunc = shared.GetGenericNamedListOneByType

Functions

func SortCaseInsensitive

func SortCaseInsensitive(list []string) []string

func ToRfcResponse

func ToRfcResponse(feature *rfc.Feature) *rfc.Feature

Types

type FeatureControlRuleBase

type FeatureControlRuleBase struct {
	FeatureDAO           db.CachedSimpleDao
	RuleProcessorFactory re.RuleProcessorFactory
}

func NewFeatureControlRuleBase

func NewFeatureControlRuleBase() *FeatureControlRuleBase

func (*FeatureControlRuleBase) AddFeaturesToResult

func (f *FeatureControlRuleBase) AddFeaturesToResult(featureMap map[string]*rfc.Feature, featureIds []string)

func (*FeatureControlRuleBase) CalculateHash

func (f *FeatureControlRuleBase) CalculateHash(features []rfc.FeatureResponse) string

func (*FeatureControlRuleBase) Eval

func (f *FeatureControlRuleBase) Eval(context map[string]string, applicationType string, fields log.Fields) (*rfc.FeatureControl, []*rfc.FeatureRule)

func (*FeatureControlRuleBase) LogFeatureInfo

func (f *FeatureControlRuleBase) LogFeatureInfo(context map[string]string, appliedRules []*rfc.FeatureRule, features []rfc.FeatureResponse, isLiveCalculated bool, fields log.Fields)

func (*FeatureControlRuleBase) NormalizeContext

func (f *FeatureControlRuleBase) NormalizeContext(context map[string]string) map[string]string

func (*FeatureControlRuleBase) ProcessFeatureRules

func (f *FeatureControlRuleBase) ProcessFeatureRules(context map[string]string, applicationType string) []*rfc.FeatureRule

Jump to

Keyboard shortcuts

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