models

package
v0.0.0-...-a9ce3c6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chatroom

type Chatroom struct {
	ID    primitive.ObjectID `bson:"_id, omitempty"`
	Owner string             `bson:"owner,omitempty`
	Name  string             `bson:"name"`
	Users []string           `bson:"users"`
}

type UserMongo

type UserMongo struct {
	// ID        primitive.ObjectID `bson:"_id, omitempty"`
	ID        string   `bson:"_id, omitempty"`
	Username  string   `bson:"username"`
	Chatrooms []string `bson:"chatrooms"`
}

Jump to

Keyboard shortcuts

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