Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidEmail ¶
func ValidatePassword ¶
func ValidatePassword(fl validator.FieldLevel) bool
Types ¶
type ErrorHandler ¶ added in v0.0.30
type ErrorHandler struct { CustomGetMessage func(err validator.FieldError) string // contains filtered or unexported fields }
func NewErrorHandler ¶ added in v0.0.30
func NewErrorHandler(ctx context.Context) ErrorHandler
func NewErrorHandlerWithCustomMessages ¶ added in v0.0.30
func NewErrorHandlerWithCustomMessages(ctx context.Context, msgGetter func(err validator.FieldError) string) ErrorHandler
func (ErrorHandler) AddFieldErrorToResponse ¶ added in v0.0.30
func (e ErrorHandler) AddFieldErrorToResponse(field string, message string) error
func (ErrorHandler) AddValidationsErrors ¶ added in v0.0.30
func (e ErrorHandler) AddValidationsErrors(err error) error
Click to show internal directories.
Click to hide internal directories.