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 `bson:"_id,omitempty"`
Username string `bson:"username"`
Email string `bson:"email"`
Password string `bson:"password"`
Name string `bson:"name"`
Surname string `bson:"surname"`
About string `bson:"about"`
Posts []primitive.ObjectID `bson:"posts"`
Comments []primitive.ObjectID `bson:"comments"`
Subscribes []primitive.ObjectID `bson:"subscribe"`
}
User represents a user in the database
Click to show internal directories.
Click to hide internal directories.