validators

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix = "internal.validators"
)

Variables

View Source
var (
	WireSet = wire.NewSet(
		Provider,
	)
	WireTestSet = wire.NewSet(
		Provider,
	)
)

Functions

This section is empty.

Types

type ValidatorSet

type ValidatorSet struct {
	provider.LMT
	// contains filtered or unexported fields
}

func New

func New(services common.Services, set provider.AwareSet) *ValidatorSet

New

func Provider

func Provider(services common.Services, set provider.AwareSet) (*ValidatorSet, func(), error)

Provider

func (*ValidatorSet) CityValidator

func (v *ValidatorSet) CityValidator(fl validator.FieldLevel) bool

CityValidator

func (*ValidatorSet) DateValidator added in v1.2.0

func (v *ValidatorSet) DateValidator(fl validator.FieldLevel) bool

Date validator

func (*ValidatorSet) NameValidator

func (v *ValidatorSet) NameValidator(fl validator.FieldLevel) bool

NameValidator

func (*ValidatorSet) PhoneValidator

func (v *ValidatorSet) PhoneValidator(fl validator.FieldLevel) bool

PhoneValidator

func (*ValidatorSet) UserLocaleValidator

func (v *ValidatorSet) UserLocaleValidator(fl validator.FieldLevel) bool

User locale validator

func (*ValidatorSet) UuidValidator

func (v *ValidatorSet) UuidValidator(fl validator.FieldLevel) bool

UuidValidator

func (*ValidatorSet) ZipUsaValidator

func (v *ValidatorSet) ZipUsaValidator(fl validator.FieldLevel) bool

ZipUsaValidator

Jump to

Keyboard shortcuts

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