util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepCopy

func DeepCopy(data interface{}) interface{}

func DeepCopyMap

func DeepCopyMap(data map[string]interface{}) map[string]interface{}

func IsValidTaskType

func IsValidTaskType(modelName string, taskType string) bool

func RegisterModelValidator

func RegisterModelValidator(modelName string, validator ModelValidator)

Types

type ModelValidator

type ModelValidator interface {
	IsValidTaskType(taskType string) bool
}

func GetModelValidator

func GetModelValidator(modelName string) ModelValidator

Jump to

Keyboard shortcuts

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