Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRepository ¶
type AuthRepository struct {
// contains filtered or unexported fields
}
func NewAuthRepository ¶
func NewAuthRepository(db *mongo.Database, collection string) *AuthRepository
func (AuthRepository) CreateUser ¶
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id,omitempty"` Email string `bson:"email"` Username string `bson:"username"` Password string `bson:"password"` PhotoURL string `bson:"photo_url"` FirstName string `bson:"first_name"` LastName string `bson:"last_name"` IsOnline bool `bson:"is_online"` IsBanned bool `bson:"is_banned"` }
Click to show internal directories.
Click to hide internal directories.