resources

package
v0.0.0-...-edc0225 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoInstance

type MongoInstance struct {
	Client *mongo.Client // MongoDB client instance
}

MongoInstance struct holds the MongoDB client instance

type User

type User struct {
	ID        string `bson:"_id,omitempty" json:"id,omitempty"` // ID field of the user document
	FirstName string `bson:"firstName" json:"firstName"`        // First name of the user
	LastName  string `bson:"lastName" json:"lastName"`          // Last name of the user
}

User struct represents the schema of a user document in MongoDB

Jump to

Keyboard shortcuts

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