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 ¶
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 ¶
func (v *Validation) ValidateForm(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateFormMultipart ¶
func (v *Validation) ValidateFormMultipart(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateFormPost ¶
func (v *Validation) ValidateFormPost(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateJSON ¶
func (v *Validation) ValidateJSON(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
consume request body
func (*Validation) ValidateJSONMulti ¶
func (v *Validation) ValidateJSONMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
not consume request body
func (*Validation) ValidateMsgPack ¶
func (v *Validation) ValidateMsgPack(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateMsgPackMulti ¶
func (v *Validation) ValidateMsgPackMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateProtoBuf ¶
func (v *Validation) ValidateProtoBuf(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateProtoBufMulti ¶
func (v *Validation) ValidateProtoBufMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateQuery ¶
func (v *Validation) ValidateQuery(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateUri ¶
func (v *Validation) ValidateUri(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateXML ¶
func (v *Validation) ValidateXML(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateXMLMulti ¶
func (v *Validation) ValidateXMLMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateYAML ¶
func (v *Validation) ValidateYAML(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
func (*Validation) ValidateYAMLMulti ¶
func (v *Validation) ValidateYAMLMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) (isAbort bool)
Click to show internal directories.
Click to hide internal directories.