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,omitempty" bson:"_id,omitempty"` Username string `json:"username,omitempty" validate:"required"` Password string `json:"password,omitempty" validate:"required"` Friends []primitive.ObjectID `json:"friends,omitempty"` }
func (*User) Collection ¶
func (u *User) Collection() *mongo.Collection
Click to show internal directories.
Click to hide internal directories.