Documentation ¶
Index ¶
- func Initialize()
- type Context
- type Validation
- func (v *Validation) Validate(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateForm(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateFormMultipart(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateFormPost(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateJSON(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateJSONMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateMsgPack(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateMsgPackMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateProtoBuf(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateProtoBufMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateQuery(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateUri(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateXML(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateXMLMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateYAML(c Context, requestDataPtr interface{}, onlyFirstError bool) error
- func (v *Validation) ValidateYAMLMulti(c Context, requestDataPtr interface{}, onlyFirstError bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize()
Types ¶
type Context ¶
type Context interface { context.RequestBindingContextor context.ResponseContextor lang.Context }
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
Click to show internal directories.
Click to hide internal directories.