util

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2019 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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