validation

package
v0.0.0-...-83a686f Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QueueNameValidator validator.Func = func(fl validator.FieldLevel) bool {
	queueName, ok := fl.Field().Interface().(queue.Name)
	if ok {
		if _, err := queue.NameFromString(string(queueName)); err != nil {
			fl.Field()
			return false
		}
	}
	return true
}
View Source
var QueueNameValidatorTag = "queueName"
View Source
var ScheduleExpressionValidatorTag = "scheduleExpression"

Functions

func SetUpValidators

func SetUpValidators(scheduleParser recurring.ScheduleParser)

Types

type TestStandardParser

type TestStandardParser struct{}

For testing

func (TestStandardParser) Parse

Jump to

Keyboard shortcuts

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