mongo

package
v0.0.0-...-870ec01 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CollectionNameEmotes            = CollectionName("emotes")
	CollectionNameUsers             = CollectionName("users")
	CollectionNameBans              = CollectionName("bans")
	CollectionNameReports           = CollectionName("reports")
	CollectionNameCosmetics         = CollectionName("cosmetics")
	CollectionNameRoles             = CollectionName("roles")
	CollectionNameAudit             = CollectionName("audit")
	CollectionNameEntitlements      = CollectionName("entitlements")
	CollectionNameNotifications     = CollectionName("notifications")
	CollectionNameNotificationsRead = CollectionName("notifications_read")
)
View Source
var Database *mongo.Database
View Source
var ErrNoDocuments = mongo.ErrNoDocuments

Functions

func Collection

func Collection(name CollectionName) *mongo.Collection

func HexIDSliceToObjectID

func HexIDSliceToObjectID(arr []string) []primitive.ObjectID

func NewUpdateOneModel

func NewUpdateOneModel() *mongo.UpdateOneModel

Types

type CollectionName

type CollectionName string

type Pipeline

type Pipeline = mongo.Pipeline

type WriteModel

type WriteModel = mongo.WriteModel

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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