feature

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: Apache-2.0 Imports: 17 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

*

  • 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

This section is empty.

Variables

This section is empty.

Functions

func CreateEntity

func CreateEntity(feature *xwrfc.Feature, applicationType string) error

func DeleteFeatureById

func DeleteFeatureById(id string)

func DeleteFeatureByIdHandler

func DeleteFeatureByIdHandler(w http.ResponseWriter, r *http.Request)

func DoesFeatureExist

func DoesFeatureExist(id string) bool

func DoesFeatureInstanceExistForAnotherId

func DoesFeatureInstanceExistForAnotherId(feature *xwrfc.Feature) bool

func FeaturePost

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

func GetAllFeature

func GetAllFeature() []*xwrfc.Feature

func GetFeatureById

func GetFeatureById(id string) *xwrfc.Feature

func GetFeatureByIdHandler

func GetFeatureByIdHandler(w http.ResponseWriter, r *http.Request)

func GetFeatureEntityById

func GetFeatureEntityById(id string) *xwrfc.FeatureEntity

func GetFeatureEntityListByApplicationTypeSorted

func GetFeatureEntityListByApplicationTypeSorted(applicationType string) []*xwrfc.FeatureEntity

func GetFeatureFiltered

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

func GetFeaturesByApplicationTypeSorted

func GetFeaturesByApplicationTypeSorted(applicationType string) []*xwrfc.Feature

func GetFeaturesByIdList

func GetFeaturesByIdList(featureIdList []string) []*xwrfc.Feature

func GetFeaturesByIdListHandler

func GetFeaturesByIdListHandler(w http.ResponseWriter, r *http.Request)

func GetFeaturesFilteredHandler

func GetFeaturesFilteredHandler(w http.ResponseWriter, r *http.Request)

func GetFeaturesHandler

func GetFeaturesHandler(w http.ResponseWriter, r *http.Request)

func GetFeaturesWithPageNumbers

func GetFeaturesWithPageNumbers(features []*xwrfc.Feature, pageNumber int, pageSize int) []*xwrfc.Feature

func ImportFeatureEntities

func ImportFeatureEntities(featureEntityList []*xwrfc.FeatureEntity, overwrite bool, applicationType string) map[string]xhttp.EntityMessage

func IsFeatureUsedInFeatureRule

func IsFeatureUsedInFeatureRule(id string) (bool, string)

func PostFeatureEntitiesHandler

func PostFeatureEntitiesHandler(w http.ResponseWriter, r *http.Request)

func PostFeatureHandler

func PostFeatureHandler(w http.ResponseWriter, r *http.Request)

func PutFeature

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

func PutFeatureEntitiesHandler

func PutFeatureEntitiesHandler(w http.ResponseWriter, r *http.Request)

func PutFeatureHandler

func PutFeatureHandler(w http.ResponseWriter, r *http.Request)

func UpdateEntity

func UpdateEntity(feature *xwrfc.Feature, applicationType string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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