validator

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: BSD-3-Clause Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SQL_INJECT_CHECK         = "sql-inject-check"
	DISABLE_SQL_INJECT_CHECK = "disable-inject-check"
)

Variables

View Source
var Validator = ValidatorClass{}

Functions

This section is empty.

Types

type ValidatorClass

type ValidatorClass struct {
	Validator *validator.Validate
}

func (*ValidatorClass) ContainAlphabet

func (validatorInstance *ValidatorClass) ContainAlphabet(val interface{}, target interface{}) bool

func (*ValidatorClass) ContainNumber

func (validatorInstance *ValidatorClass) ContainNumber(val interface{}, target interface{}) bool

func (*ValidatorClass) EmptyFun

func (validatorInstance *ValidatorClass) EmptyFun(fl validator.FieldLevel) bool

func (*ValidatorClass) EndWith

func (validatorInstance *ValidatorClass) EndWith(val interface{}, target interface{}) bool

func (*ValidatorClass) Init

func (validatorInstance *ValidatorClass) Init() error

func (*ValidatorClass) IsMobile

func (validatorInstance *ValidatorClass) IsMobile(val interface{}, target interface{}) bool

func (*ValidatorClass) NoSqlInject

func (validatorInstance *ValidatorClass) NoSqlInject(val interface{}, target interface{}) bool

func (*ValidatorClass) StartWith

func (validatorInstance *ValidatorClass) StartWith(val interface{}, target interface{}) bool

func (*ValidatorClass) StrGt

func (validatorInstance *ValidatorClass) StrGt(val interface{}, target interface{}) bool

func (*ValidatorClass) StrGte

func (validatorInstance *ValidatorClass) StrGte(val interface{}, target interface{}) bool

func (*ValidatorClass) StrLt

func (validatorInstance *ValidatorClass) StrLt(val interface{}, target interface{}) bool

func (*ValidatorClass) StrLte

func (validatorInstance *ValidatorClass) StrLte(val interface{}, target interface{}) bool

func (*ValidatorClass) Wrap

func (validatorInstance *ValidatorClass) Wrap(method func(val interface{}, target interface{}) bool) func(fl validator.FieldLevel) bool

Jump to

Keyboard shortcuts

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