validator

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize()

Types

type Validation

type Validation struct {
	Trans *ut.Translator
}

func (*Validation) Validate

func (v *Validation) Validate(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateForm

func (v *Validation) ValidateForm(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateFormMultipart

func (v *Validation) ValidateFormMultipart(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateFormPost

func (v *Validation) ValidateFormPost(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateJSON

func (v *Validation) ValidateJSON(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateJSONMulti

func (v *Validation) ValidateJSONMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateMsgPack

func (v *Validation) ValidateMsgPack(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateMsgPackMulti

func (v *Validation) ValidateMsgPackMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateProtoBuf

func (v *Validation) ValidateProtoBuf(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateProtoBufMulti

func (v *Validation) ValidateProtoBufMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateQuery

func (v *Validation) ValidateQuery(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateUri

func (v *Validation) ValidateUri(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateXML

func (v *Validation) ValidateXML(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateXMLMulti

func (v *Validation) ValidateXMLMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateYAML

func (v *Validation) ValidateYAML(c Context, requestDataPtr interface{}, onlyFirstError bool) error

func (*Validation) ValidateYAMLMulti

func (v *Validation) ValidateYAMLMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) error

Jump to

Keyboard shortcuts

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