Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserParams ¶
type CreateUserParams struct { FirstName string `json:"firstName"` LastName string `json:"lastName"` Email string `json:"email"` Password string `json:"password"` }
func (CreateUserParams) Validate ¶
func (params CreateUserParams) Validate() []string
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"` FirstName string `bson:"firstName" json:"firstName"` LastName string `bson:"lastName" json:"lastName"` Email string `bson:"email" json:"email"` EncryptedPassword string `bson:"encryptedPassword" json:"-"` }
func NewUserFromParams ¶
func NewUserFromParams(params CreateUserParams) (*User, error)
Click to show internal directories.
Click to hide internal directories.