validator

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 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.

Jump to

Keyboard shortcuts

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