Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { Id string `bson:"_id" db:"id" json:"id,omitempty" validate:"uuid"` Username string `bson:"username" db:"username" json:"username" validate:"required,min=3"` Password string `bson:"password" db:"password" json:"password,omitempty" validate:"required,min=8"` CreatedAt time.Time `bson:"createdAt" db:"created_at" json:"createdAt"` UpdatedAt time.Time `bson:"updatedAt" db:"updated_at" json:"updatedAt"` }
func NewUserModel ¶
func (User) ValidatePassword ¶
func (User) ValidateUsername ¶
Click to show internal directories.
Click to hide internal directories.