validators

package
v0.0.0-...-e75809f Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidRating

func IsValidRating(
	v *validator.Validate,
	topStruct reflect.Value,
	currentStruct reflect.Value,
	field reflect.Value,
	fieldType reflect.Type,
	fieldKind reflect.Kind,
	param string,
) bool

IsValidRating ... noinspection GoUnusedParameter

func IsValidResolution

func IsValidResolution(
	v *validator.Validate,
	topStruct reflect.Value,
	currentStruct reflect.Value,
	field reflect.Value,
	fieldType reflect.Type,
	fieldKind reflect.Kind,
	param string,
) bool

IsValidResolution ... noinspection GoUnusedParameter

func IsValidRetrospectiveFeedbackScope

func IsValidRetrospectiveFeedbackScope(
	v *validator.Validate,
	topStruct reflect.Value,
	currentStruct reflect.Value,
	field reflect.Value,
	fieldType reflect.Type,
	fieldKind reflect.Kind,
	param string,
) bool

IsValidRetrospectiveFeedbackScope ... noinspection GoUnusedParameter

func IsValidSprint

func IsValidSprint(
	v *validator.Validate,
	topStruct reflect.Value,
	currentStruct reflect.Value,
	field reflect.Value,
	fieldType reflect.Type,
	fieldKind reflect.Kind,
	param string,
) bool

IsValidSprint ... noinspection GoUnusedParameter

func IsValidTaskProviderConfigList

func IsValidTaskProviderConfigList(
	v *validator.Validate,
	topStruct reflect.Value,
	currentStruct reflect.Value,
	field reflect.Value,
	fieldType reflect.Type,
	fieldKind reflect.Kind,
	param string,
) bool

IsValidTaskProviderConfigList validates the TaskProviderConfig noinspection GoUnusedParameter

func IsValidTaskRole

func IsValidTaskRole(
	v *validator.Validate,
	topStruct reflect.Value,
	currentStruct reflect.Value,
	field reflect.Value,
	fieldType reflect.Type,
	fieldKind reflect.Kind,
	param string,
) bool

IsValidTaskRole ... noinspection GoUnusedParameter

func IsValidTeam

func IsValidTeam(db *gorm.DB) validator.Func

IsValidTeam validates the Team, given the team id, it checks if the team exists and the user is a team member

Types

type RetrospectiveValidators

type RetrospectiveValidators struct {
	DB *gorm.DB
}

RetrospectiveValidators is used for registering validators for the retrospective app

func (RetrospectiveValidators) Register

func (retroValidator RetrospectiveValidators) Register()

Register registers all the validators for the retrospective serializers

Jump to

Keyboard shortcuts

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