Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Contacts = bson.M{ "name": "contacts", "index": []mongo.IndexModel{ { bson.D{ {"user_id", 1}, {"contact_user_id", 1}, }, options.Index().SetUnique(true), }, { bson.D{ {"user_id", 1}, }, options.Index(), }, { bson.D{ {"contact_user_id", 1}, }, options.Index(), }, }, } )
View Source
var ( ContactsApply = bson.M{ "name": "contacts_apply", "index": []mongo.IndexModel{ { bson.D{ {"user_id", 1}, {"applyer_user_id", 1}, }, options.Index().SetUnique(true), }, { bson.D{ {"user_id", 1}, }, options.Index(), }, { bson.D{ {"applyer_user_id", 1}, }, options.Index(), }, { bson.D{ {"refuse", 1}, }, options.Index(), }, { bson.D{ {"pass", 1}, }, options.Index(), }, { bson.D{ {"delete", 1}, }, options.Index(), }, }, } )
View Source
var ( ContactsBlacklist = bson.M{ "name": "contacts_blacklist", "index": []mongo.IndexModel{ { bson.D{ {"user_id", 1}, {"blacklist_user_id", 1}, }, options.Index().SetUnique(true), }, { bson.D{ {"user_id", 1}, }, options.Index(), }, { bson.D{ {"blacklist_user_id", 1}, }, options.Index(), }, }, } )
View Source
var ( Group = bson.M{ "name": "group", "index": []mongo.IndexModel{ { bson.D{ {"_id", 1}, {"members.user_id", 1}, }, options.Index().SetUnique(true), }, { bson.D{ {"type", 1}, }, options.Index(), }, { bson.D{ {"user_id", 1}, }, options.Index(), }, { bson.D{ {"hide", 1}, }, options.Index(), }, { bson.D{ {"hide_members", 1}, }, options.Index(), }, { bson.D{ {"join", 1}, }, options.Index(), }, { bson.D{ {"audit", 1}, }, options.Index(), }, { bson.D{ {"status", 1}, }, options.Index(), }, { bson.D{ {"delete", 1}, }, options.Index(), }, { bson.D{ {"members.adminer", 1}, }, options.Index(), }, { bson.D{ {"members.stealth", 1}, }, options.Index(), }, }, } )
View Source
var ( GroupApply = bson.M{ "name": "group_apply", "index": []mongo.IndexModel{ { bson.D{ {"group_id", 1}, {"applyer_user_id", 1}, }, options.Index().SetUnique(true), }, { bson.D{ {"group_id", 1}, }, options.Index(), }, { bson.D{ {"applyer_user_id", 1}, }, options.Index(), }, { bson.D{ {"refuse", 1}, }, options.Index(), }, { bson.D{ {"pass", 1}, }, options.Index(), }, { bson.D{ {"delete", 1}, }, options.Index(), }, }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.