util

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 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