Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
Authenticate ...
Types ¶
type Validator ¶
type Validator struct { Message string Errors map[string]string UserService *db.UserService }
Validator ...
func NewValidator ¶
func NewValidator(c *mongo.Client, config *root.MongoConfig) *Validator
NewValidator ...
func (*Validator) ValidateUserExist ¶
ValidateUserExist ...
func (*Validator) ValidateUserLogin ¶
ValidateUserLogin ...
func (*Validator) ValidateUserRegister ¶
func (v *Validator) ValidateUserRegister(next http.Handler) func(http.ResponseWriter, *http.Request)
ValidateUserRegister ...
Click to show internal directories.
Click to hide internal directories.