Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DefaultValidator ¶
type DefaultValidator struct {
// contains filtered or unexported fields
}
DefaultValidator struct
func NewDefaultValidator ¶
func NewDefaultValidator( logger *Logger, ) *DefaultValidator
NewDefaultValidator creates a new default mapper validator
func (*DefaultValidator) ValidateRequiredFields ¶ added in v0.5.0
func (d *DefaultValidator) ValidateRequiredFields( rootStructValidations *govalidatormappervalidations.StructValidations, data interface{}, mapper *govalidatormapper.Mapper, ) (err error)
ValidateRequiredFields validates the required fields of a struct
type Logger ¶ added in v0.4.6
type Logger struct {
// contains filtered or unexported fields
}
Logger is the JWT validator logger
func NewLogger ¶ added in v0.4.6
func NewLogger(header string, modeLogger gologgermode.Logger) (*Logger, error)
NewLogger creates a new JWT validator logger
func (*Logger) PrintField ¶ added in v0.4.6
PrintField prints the field on debug mode
func (*Logger) UninitializedField ¶ added in v0.4.6
UninitializedField prints the uninitialized field on debug mode
type Validator ¶
type Validator interface { ValidateRequiredFields( rootStructValidations *govalidatormappervalidations.StructValidations, data interface{}, mapper *govalidatormapper.Mapper, ) (err error) }
Validator interface
Click to show internal directories.
Click to hide internal directories.