dcm

package
v1.0.4 Latest Latest
Warning

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

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

*

  • 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

*

  • 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

*

  • 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

*

  • 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

*

  • 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 (
	FEBRUARY     = 2
	LEAPYEARDAYS = 29
)

Variables

This section is empty.

Functions

func CreateDcmFormulaHandler

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

func CreateDcmRule

func CreateDcmRule(dfrule *logupload.DCMGenericRule, appType string) *xwhttp.ResponseEntity

func CreateDeviceSettings

func CreateDeviceSettings(dset *logupload.DeviceSettings, app string) *xwhttp.ResponseEntity

func CreateDeviceSettingsHandler

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

func CreateLogRepoSettings

func CreateLogRepoSettings(lr *logupload.UploadRepository, app string) *xwhttp.ResponseEntity

func CreateLogRepoSettingsHandler

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

func CreateLogUploadSettings

func CreateLogUploadSettings(lu *logupload.LogUploadSettings, app string) *xwhttp.ResponseEntity

func CreateLogUploadSettingsHandler

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

func CreateVodSettings

func CreateVodSettings(vs *logupload.VodSettings, app string) *xwhttp.ResponseEntity

func CreateVodSettingsHandler

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

func DcmFormulaChangePriorityHandler

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

func DcmFormulaFilterByContext

func DcmFormulaFilterByContext(searchContext map[string]string) []*logupload.DCMGenericRule

func DcmFormulaRuleGeneratePageWithContext

func DcmFormulaRuleGeneratePageWithContext(dfrules []*logupload.DCMGenericRule, contextMap map[string]string) (result []*logupload.DCMGenericRule, err error)

func DcmFormulaSettingsAvailabilitygHandler

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

func DcmFormulasAvailabilitygHandler

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

func DcmRulesToPrioritizables

func DcmRulesToPrioritizables(dcmRules []*logupload.DCMGenericRule) []core.Prioritizable

func DcmTestPageHandler

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

func DeleteDcmFormulaByIdHandler

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

func DeleteDcmFormulabyId

func DeleteDcmFormulabyId(id string, appType string) *xcommon.ResponseEntity

func DeleteDeviceSettingsByIdHandler

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

func DeleteDeviceSettingsbyId

func DeleteDeviceSettingsbyId(id string, app string) *xwhttp.ResponseEntity

func DeleteLogRepoSettingsByIdHandler

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

func DeleteLogRepoSettingsbyId

func DeleteLogRepoSettingsbyId(id string, app string) *xwhttp.ResponseEntity

func DeleteLogUploadSettingsByIdHandler

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

func DeleteLogUploadSettingsbyId

func DeleteLogUploadSettingsbyId(id string, app string) *xwhttp.ResponseEntity

func DeleteOneDcmFormula

func DeleteOneDcmFormula(id string, appType string) error

func DeleteOneDeviceSettings

func DeleteOneDeviceSettings(id string) error

func DeleteOneLogRepoSettings

func DeleteOneLogRepoSettings(id string) error

func DeleteOneLogUploadSettings

func DeleteOneLogUploadSettings(id string) error

func DeleteOneVodSettings

func DeleteOneVodSettings(id string) error

func DeleteVodSettingsByIdHandler

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

func DeleteVodSettingsbyId

func DeleteVodSettingsbyId(id string, app string) *xwhttp.ResponseEntity

func DeviceSettingsFilterByContext

func DeviceSettingsFilterByContext(searchContext map[string]string) []*logupload.DeviceSettings

func DeviceSettingsGeneratePage

func DeviceSettingsGeneratePage(list []*logupload.DeviceSettings, page int, pageSize int) (result []*logupload.DeviceSettings)

func DeviceSettingsGeneratePageWithContext

func DeviceSettingsGeneratePageWithContext(dsrules []*logupload.DeviceSettings, contextMap map[string]string) (result []*logupload.DeviceSettings, err error)

func DeviceSettingsValidate

func DeviceSettingsValidate(ds *logupload.DeviceSettings) *xwhttp.ResponseEntity

func GetDcmFormula

func GetDcmFormula(id string) *logupload.DCMGenericRule

func GetDcmFormulaAll

func GetDcmFormulaAll() []*logupload.DCMGenericRule

func GetDcmFormulaByIdHandler

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

func GetDcmFormulaHandler

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

func GetDcmFormulaNamesHandler

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

func GetDcmFormulaSizeHandler

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

func GetDcmRulesByApplicationType

func GetDcmRulesByApplicationType(applicationType string) []*logupload.DCMGenericRule

func GetDeviceSettings

func GetDeviceSettings(id string) *logupload.DeviceSettings

func GetDeviceSettingsAll

func GetDeviceSettingsAll() []*logupload.DeviceSettings

func GetDeviceSettingsByIdHandler

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

func GetDeviceSettingsExportHandler

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

func GetDeviceSettingsHandler

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

func GetDeviceSettingsList

func GetDeviceSettingsList() []*logupload.DeviceSettings

func GetDeviceSettingsNamesHandler

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

func GetDeviceSettingsSizeHandler

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

func GetLogRepoSettings

func GetLogRepoSettings(id string) *logupload.UploadRepository

func GetLogRepoSettingsAll

func GetLogRepoSettingsAll() []*logupload.UploadRepository

func GetLogRepoSettingsByIdHandler

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

func GetLogRepoSettingsExportHandler

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

func GetLogRepoSettingsHandler

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

func GetLogRepoSettingsList

func GetLogRepoSettingsList() []*logupload.UploadRepository

func GetLogRepoSettingsNamesHandler

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

func GetLogRepoSettingsSizeHandler

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

func GetLogUploadSettingsByIdHandler

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

func GetLogUploadSettingsHandler

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

func GetLogUploadSettingsList

func GetLogUploadSettingsList() []*logupload.LogUploadSettings

func GetLogUploadSettingsNamesHandler

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

func GetLogUploadSettingsSizeHandler

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

func GetOneLogRepoSettings

func GetOneLogRepoSettings(id string) *logupload.UploadRepository

func GetVodSettingExportHandler

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

func GetVodSettings

func GetVodSettings(id string) *logupload.VodSettings

func GetVodSettingsAll

func GetVodSettingsAll() []*logupload.VodSettings

func GetVodSettingsByIdHandler

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

func GetVodSettingsHandler

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

func GetVodSettingsList

func GetVodSettingsList() []*logupload.VodSettings

func GetVodSettingsNamesHandler

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

func GetVodSettingsSizeHandler

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

func ImportDcmFormulaWithOverwriteHandler

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

func ImportDcmFormulasHandler

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

func LogRepoSettingsFilterByContext

func LogRepoSettingsFilterByContext(searchContext map[string]string) []*logupload.UploadRepository

func LogRepoSettingsGeneratePage

func LogRepoSettingsGeneratePage(list []*logupload.UploadRepository, page int, pageSize int) (result []*logupload.UploadRepository)

func LogRepoSettingsGeneratePageWithContext

func LogRepoSettingsGeneratePageWithContext(lrrules []*logupload.UploadRepository, contextMap map[string]string) (result []*logupload.UploadRepository, err error)

func LogRepoSettingsValidate

func LogRepoSettingsValidate(lr *logupload.UploadRepository) *xwhttp.ResponseEntity

func LogUploadSettingsFilterByContext

func LogUploadSettingsFilterByContext(searchContext map[string]string) []*logupload.LogUploadSettings

func LogUploadSettingsGeneratePage

func LogUploadSettingsGeneratePage(list []*logupload.LogUploadSettings, page int, pageSize int) (result []*logupload.LogUploadSettings)

func LogUploadSettingsGeneratePageWithContext

func LogUploadSettingsGeneratePageWithContext(lurules []*logupload.LogUploadSettings, contextMap map[string]string) (result []*logupload.LogUploadSettings, err error)

func LogUploadSettingsValidate

func LogUploadSettingsValidate(lu *logupload.LogUploadSettings) *xwhttp.ResponseEntity

func PostDcmFormulaFilteredWithParamsHandler

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

func PostDcmFormulaListHandler

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

func PostDeviceSettingsFilteredWithParamsHandler

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

func PostLogRepoSettingsEntitiesHandler

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

func PostLogRepoSettingsFilteredWithParamsHandler

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

func PostLogUploadSettingsFilteredWithParamsHandler

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

func PostVodSettingsFilteredWithParamsHandler

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

func PutDcmFormulaListHandler

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

func PutLogRepoSettingsEntitiesHandler

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

func SaveDcmRules

func SaveDcmRules(itemList []core.Prioritizable) error

func UpdateDcmFormulaHandler

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

func UpdateDcmRule

func UpdateDcmRule(incomingFormula *logupload.DCMGenericRule, appType string) *xwhttp.ResponseEntity

func UpdateDeviceSettings

func UpdateDeviceSettings(dset *logupload.DeviceSettings, app string) *xwhttp.ResponseEntity

func UpdateDeviceSettingsHandler

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

func UpdateLogRepoSettings

func UpdateLogRepoSettings(lr *logupload.UploadRepository, app string) *xwhttp.ResponseEntity

func UpdateLogRepoSettingsHandler

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

func UpdateLogUploadSettings

func UpdateLogUploadSettings(lu *logupload.LogUploadSettings, app string) *xwhttp.ResponseEntity

func UpdateLogUploadSettingsHandler

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

func UpdateVodSettings

func UpdateVodSettings(vs *logupload.VodSettings, app string) *xwhttp.ResponseEntity

func UpdateVodSettingsHandler

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

func VodSettingsFilterByContext

func VodSettingsFilterByContext(searchContext map[string]string) []*logupload.VodSettings

func VodSettingsGeneratePage

func VodSettingsGeneratePage(list []*logupload.VodSettings, page int, pageSize int) (result []*logupload.VodSettings)

func VodSettingsGeneratePageWithContext

func VodSettingsGeneratePageWithContext(vsrules []*logupload.VodSettings, contextMap map[string]string) (result []*logupload.VodSettings, err error)

func VodSettingsValidate

func VodSettingsValidate(vs *logupload.VodSettings) *xwhttp.ResponseEntity

Types

This section is empty.

Jump to

Keyboard shortcuts

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