Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID primitive.ObjectID `json:"id" binding:"omitempty" bson:"_id,omitempty"` FirstName string `json:"firstName" binding:"omitempty" bson:"firstname,omitempty"` LastName string `json:"lastName" binding:"omitempty" bson:"lastname,omitempty"` Age int `json:"age,omitempty" binding:"omitempty" bson:"age,omitempty"` }
User struct
func (*User) DeleteUser ¶
DeleteUser - deletes one user from the db
func (*User) GetUserByID ¶
GetUserByID - returns a single user from the db
Click to show internal directories.
Click to hide internal directories.