models

package
v0.0.0-...-12d4a3b Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	ID        primitive.ObjectID `json:"id" bson:"_id"`
	Content   string             `json:"content" bson:"content"`
	RoomID    primitive.ObjectID `json:"room_id" bson:"room_id"`
	SenderID  primitive.ObjectID `json:"sender_id" bson:"sender_id"`
	CreatedAt time.Time          `json:"created_at" bson:"created_at"`
}

type Room

type Room struct {
	ID        primitive.ObjectID `json:"id" bson:"_id" example:"667aa959e88fab79e20b728c"`
	Name      string             `json:"name" bson:"name" example:"warzone"`
	CreatedAt time.Time          `json:"created_at" bson:"created_at" example:"2024-06-25T11:36:13.591+00:00"`
}

Jump to

Keyboard shortcuts

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