Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoDocuments = mongo.ErrNoDocuments
Functions ¶
This section is empty.
Types ¶
type CollectionName ¶
type CollectionName string
var ( CollectionNameSystem CollectionName = "system" CollectionNameAuditLogs CollectionName = "audit_logs" CollectionNameEmotes CollectionName = "emotes" CollectionNameEmoteSets CollectionName = "emote_sets" CollectionNameUsers CollectionName = "users" CollectionNameUserPresences CollectionName = "user_presences" CollectionNameRoles CollectionName = "roles" CollectionNameEntitlements CollectionName = "entitlements" CollectionNameCosmetics CollectionName = "cosmetics" CollectionNameReports CollectionName = "reports" CollectionNameBans CollectionName = "bans" CollectionNameMessages CollectionName = "messages" CollectionNameMessagesRead CollectionName = "messages_read" )
type DeleteOneModel ¶
type DeleteOneModel = mongo.DeleteOneModel
type IndexModel ¶
type IndexModel = mongo.IndexModel
type InsertOneModel ¶
type InsertOneModel = mongo.InsertOneModel
type Instance ¶
type Instance interface { Collection(CollectionName) *mongo.Collection ExternalCollection(db string, name CollectionName) *mongo.Collection Ping(ctx context.Context) error RawClient() *mongo.Client RawDatabase() *mongo.Database System(ctx context.Context) (structures.System, error) }
type Lookup ¶
type Lookup struct { From CollectionName `bson:"from"` LocalField string `bson:"localField"` ForeignField string `bson:"foreignField"` As string `bson:"as"` }
type LookupWithPipeline ¶
type SetupOptions ¶
type UpdateManyModel ¶
type UpdateManyModel = mongo.UpdateManyModel
type UpdateOneModel ¶
type UpdateOneModel = mongo.UpdateOneModel
type WriteModel ¶
type WriteModel = mongo.WriteModel
Click to show internal directories.
Click to hide internal directories.