rfc

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright 2025 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

View Source
const (
	APPLICATION_TYPE = "applicationType"
	FEATURE_INSTANCE = "FEATURE_INSTANCE"
	NAME             = "NAME"
	FREE_ARG         = "FREE_ARG"
	FIXED_ARG        = "FIXED_ARG"
)

Variables

This section is empty.

Functions

func DeleteFeatureRule

func DeleteFeatureRule(id string)

func DeleteOneFeature

func DeleteOneFeature(featureId string)

func DoesFeatureExist

func DoesFeatureExist(id string) bool

func DoesFeatureExistInSomeApplicationType

func DoesFeatureExistInSomeApplicationType(id string) (bool, string)

func DoesFeatureExistWithApplicationType

func DoesFeatureExistWithApplicationType(id string, applicationType string) bool

func DoesFeatureNameExistForAnotherEntityId

func DoesFeatureNameExistForAnotherEntityId(featureEntity *rfc.FeatureEntity) bool

func DoesFeatureNameExistForAnotherId

func DoesFeatureNameExistForAnotherId(feature *rfc.Feature) bool

func DoesFeatureNameExistForAnotherIdForApplicationType

func DoesFeatureNameExistForAnotherIdForApplicationType(feature *xwrfc.Feature, applicationType string) bool

func DoesFeatureNameExistForAnotherIdInList

func DoesFeatureNameExistForAnotherIdInList(feature *xwrfc.Feature, featureList []*xwrfc.Feature) bool

func GetFeatureEntityList

func GetFeatureEntityList() []*rfc.FeatureEntity

func GetFeatureRule

func GetFeatureRule(id string) *rfc.FeatureRule

func GetFilteredFeatureEntityList

func GetFilteredFeatureEntityList(searchContext map[string]string) []*xwrfc.FeatureEntity

func GetFilteredFeatureList

func GetFilteredFeatureList(searchContext map[string]string) []*xwrfc.Feature

func IsValidFeature

func IsValidFeature(feature *xwrfc.Feature) (bool, string)

func IsValidFeatureEntity

func IsValidFeatureEntity(featureEntity *rfc.FeatureEntity) (bool, string)

func NewFeatureRuleInf

func NewFeatureRuleInf() interface{}

func SetFeatureRule

func SetFeatureRule(id string, featureRule *rfc.FeatureRule) error

func SetOneFeature

func SetOneFeature(feature *xwrfc.Feature) (*xwrfc.Feature, error)

Types

type FeatureRule

type FeatureRule struct {
	Id              string   `json:"id"`
	Name            string   `json:"name"`
	Rule            *re.Rule `json:"rule"`
	Priority        int      `json:"priority"`
	FeatureIds      []string `json:"featureIds"`
	ApplicationType string   `json:"applicationType"`
}

FeatureRule FeatureControlRule2 table

func (*FeatureRule) Clone

func (obj *FeatureRule) Clone() (*FeatureRule, error)

func (*FeatureRule) GetApplicationType

func (obj *FeatureRule) GetApplicationType() string

func (*FeatureRule) GetID

func (obj *FeatureRule) GetID() string

func (*FeatureRule) GetId

func (r *FeatureRule) GetId() string

GetId XRule interface

func (*FeatureRule) GetName

func (r *FeatureRule) GetName() string

GetName XRule interface

func (*FeatureRule) GetPriority

func (obj *FeatureRule) GetPriority() int

func (*FeatureRule) GetRule

func (r *FeatureRule) GetRule() *re.Rule

GetRule XRule interface

func (*FeatureRule) GetRuleType

func (r *FeatureRule) GetRuleType() string

GetRuleType XRule interface

func (*FeatureRule) GetTemplateId

func (r *FeatureRule) GetTemplateId() string

GetTemplateId XRule interface

func (*FeatureRule) SetApplicationType

func (obj *FeatureRule) SetApplicationType(appType string)

func (*FeatureRule) SetPriority

func (obj *FeatureRule) SetPriority(priority int)

Jump to

Keyboard shortcuts

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