models

package
v0.0.0-...-fe975ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL