Documentation ¶
Index ¶
- func UpgradeValidatorV8toV9()
- type Context
- type Validation
- func (v *Validation) Validate(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateForm(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateFormMultipart(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateFormPost(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateJSON(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateJSONMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateMsgPack(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateMsgPackMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateProtoBuf(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateProtoBufMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateQuery(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateUri(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateXML(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateXMLMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateYAML(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
- func (v *Validation) ValidateYAMLMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpgradeValidatorV8toV9 ¶
func UpgradeValidatorV8toV9()
Types ¶
type Context ¶ added in v0.9.0
type Context interface { context.RequestBindingContextor context.ResponseContextor lang.Context }
type Validation ¶
type Validation struct { }
func (*Validation) Validate ¶
func (v *Validation) Validate(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
@todo Deprecated, for compatible with v0.10.0
func (*Validation) ValidateForm ¶ added in v0.10.1
func (v *Validation) ValidateForm(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateFormMultipart ¶ added in v0.10.1
func (v *Validation) ValidateFormMultipart(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateFormPost ¶ added in v0.10.1
func (v *Validation) ValidateFormPost(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateJSON ¶ added in v0.10.1
func (v *Validation) ValidateJSON(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
consume request body
func (*Validation) ValidateJSONMulti ¶ added in v0.10.1
func (v *Validation) ValidateJSONMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
not consume request body
func (*Validation) ValidateMsgPack ¶ added in v0.10.1
func (v *Validation) ValidateMsgPack(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateMsgPackMulti ¶ added in v0.10.1
func (v *Validation) ValidateMsgPackMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateProtoBuf ¶ added in v0.10.1
func (v *Validation) ValidateProtoBuf(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateProtoBufMulti ¶ added in v0.10.1
func (v *Validation) ValidateProtoBufMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateQuery ¶ added in v0.10.1
func (v *Validation) ValidateQuery(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateUri ¶ added in v0.10.1
func (v *Validation) ValidateUri(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateXML ¶ added in v0.10.1
func (v *Validation) ValidateXML(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateXMLMulti ¶ added in v0.10.1
func (v *Validation) ValidateXMLMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateYAML ¶ added in v0.10.1
func (v *Validation) ValidateYAML(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateYAMLMulti ¶ added in v0.10.1
func (v *Validation) ValidateYAMLMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
Click to show internal directories.
Click to hide internal directories.