Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("validator", fx.Provide(NewValidator), )
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator() *Validator
func (*Validator) Format ¶
func (v *Validator) Format(errs []ErrorResponse) []string
func (*Validator) MustValidate ¶
func (*Validator) ParseBodyAndValidate ¶
func (*Validator) Validate ¶
func (v *Validator) Validate(data interface{}) []ErrorResponse
Click to show internal directories.
Click to hide internal directories.