validator

package
v0.0.0-...-7923462 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 5 Imported by: 0

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

func (*CryptMd5Validator) Validate

func (v *CryptMd5Validator) Validate(hash string, password string) bool

password validation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL