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 ¶
- Variables
- func SortCaseInsensitive(list []string) []string
- func ToRfcResponse(feature *rfc.Feature) *rfc.Feature
- type FeatureControlRuleBase
- func (f *FeatureControlRuleBase) AddFeaturesToResult(featureMap map[string]*rfc.Feature, featureIds []string)
- func (f *FeatureControlRuleBase) CalculateHash(features []rfc.FeatureResponse) string
- func (f *FeatureControlRuleBase) Eval(context map[string]string, applicationType string, fields log.Fields) (*rfc.FeatureControl, []*rfc.FeatureRule)
- func (f *FeatureControlRuleBase) LogFeatureInfo(context map[string]string, appliedRules []*rfc.FeatureRule, ...)
- func (f *FeatureControlRuleBase) NormalizeContext(context map[string]string) map[string]string
- func (f *FeatureControlRuleBase) ProcessFeatureRules(context map[string]string, applicationType string) []*rfc.FeatureRule
Constants ¶
This section is empty.
Variables ¶
View Source
var GetGenericNamedListOneByTypeFunc = shared.GetGenericNamedListOneByType
Functions ¶
func SortCaseInsensitive ¶
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, 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
Click to show internal directories.
Click to hide internal directories.