chat

package
v0.0.0-...-1d800d4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(ctx context.Context, db *mongo.Database, rTx, tx pgx.Tx, limit int) error

Types

type Message

type Message struct {
	Id        primitive.ObjectID `bson:"_id"`
	Content   string             `bson:"content"`
	Timestamp int64              `bson:"timestamp"`
	UserId    primitive.ObjectID `bson:"user_id"`
	RoomId    primitive.ObjectID `bson:"room_id"`
}

type Room

type Room struct {
	Id        primitive.ObjectID `bson:"_id"`
	ProjectId primitive.ObjectID `bson:"project_id"`
}

Jump to

Keyboard shortcuts

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