Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // get the field related with the validator GetFieldName() string // password validation Validate(hash string, password string) bool }
general validators interface
func NewCryptMd5Validator ¶
func NewCryptMd5Validator() Client
type CryptMd5Validator ¶
type CryptMd5Validator struct {
// contains filtered or unexported fields
}
cryptMD5 validator struct
func (*CryptMd5Validator) GetFieldName ¶
func (v *CryptMd5Validator) GetFieldName() string
get the field related with the current validator
Click to show internal directories.
Click to hide internal directories.