/
constants.go
52 lines (40 loc) · 1.02 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package model
/* CONTEXT KEYS */
// various
// const KeyDb = "db"
const KeyUserDb = "userDb"
const KeyDataDb = "dataDb"
const KeyUserRecord = "userRecord"
const KeyMgoID = "id"
// Users
const KeyUser = "user"
const KeyUserID = "userId"
const KeyUserDisplayName = "userDisplayName"
const KeyEmail = "email"
const KeyEmailVerified = "emailVerified"
const KeyAuth = "authorization"
const KeyClaims = "claims"
const KeyUserRoles = "userRoles"
const KeyEditedUser = "user"
const KeyEditedUserRoles = "editedUserRoles"
// User Meta
const KeyPresence = "presence"
// Posts
const KeyPost = "post"
const KeyPath = "path"
const KeyTags = "tags"
// Comments
const KeyComment = "comment"
const KeyParentID = "parentId"
// Tasks
const KeyTask = "task"
const KeyCategory = "category"
const KeyCategoryID = "categoryId"
/* FIREBASE specific keys */
const FbKeyUserID = "user_id"
const FbKeyEmail = "email"
const FbKeyEmailVerified = "email_verified"
/* LOCAL CONSTANTS */
// Store types
const StoreTypeMgo = "mongodb"
const StoreTypeGorm = "gorm"