validations

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 3 Imported by: 0

README

/app/validations

Code in this directory should handle input validations

Examples

  • Full Name should consist from at least 2 words
  • Value is out of Max/Min limits
  • List can't be empty
  • Mutually exclusive values

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpamCheckValidations

type SpamCheckValidations interface {
	ValidateIssue(ctx context.Context, spammable *spamcheck.Issue) error
}

func CreateSpamCheckValidations

func CreateSpamCheckValidations() SpamCheckValidations

CreateSpamCheckValidations contsructs the validation object

Jump to

Keyboard shortcuts

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