validator

package module
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 6 Imported by: 1

README

GoZix Validator

Dependencies

Documentation

Index

Constants

View Source
const (
	// BundleName is default definition name.
	BundleName = "validator"

	// DefEnLocaleConfigurator is english translations configurator.
	DefEnLocaleConfigurator = "validator.configurator.en-locale"

	// DefJsonTagNameConfigurator is json tag name configurator.
	DefJsonTagNameConfigurator = "validator.configurator.json-tag-name"

	// TagConfigurator is tag to mark specific validations.
	TagConfigurator = "validator.configurator"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct{}

Bundle implements the glue.Bundle interface.

func NewBundle

func NewBundle() *Bundle

NewBundle create bundle instance.

func (*Bundle) Build

func (b *Bundle) Build(builder *di.Builder) error

Build implements the glue.Bundle interface.

func (*Bundle) DependsOn

func (b *Bundle) DependsOn() []string

DependsOn implements the glue.DependsOn interface.

func (*Bundle) Name

func (b *Bundle) Name() string

Key implements the glue.Bundle interface.

type Configurator

type Configurator = func(*validator.Validate) error

Configurator is register default translations func interface.

type Validate

type Validate = validator.Validate

Validate is type alias of validator.Validate.

type ValidationErrors added in v2.2.0

type ValidationErrors = validator.ValidationErrors

ValidationErrors is type alias of validator.ValidationErrors.

type ValidationErrorsTranslations added in v2.2.0

type ValidationErrorsTranslations = validator.ValidationErrorsTranslations

ValidationErrorsTranslations is type alias of validator.ValidationErrorsTranslations.

Jump to

Keyboard shortcuts

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