-
Notifications
You must be signed in to change notification settings - Fork 14
/
structs.go
56 lines (48 loc) · 1.08 KB
/
structs.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
53
54
55
56
package tests
import (
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
"twreporter.org/go-api/models"
)
type defaultVariables struct {
Account string
Service string
Token string
// objectID
ImgID1 bson.ObjectId
ImgID2 bson.ObjectId
VideoID bson.ObjectId
PostID1 bson.ObjectId
PostID2 bson.ObjectId
TopicID bson.ObjectId
TagID bson.ObjectId
CatID bson.ObjectId
ThemeID bson.ObjectId
// collection
ImgCol1 models.MongoImage
ImgCol2 models.MongoImage
VideoCol models.MongoVideo
PostCol1 models.Post
PostCol2 models.Post
TagCol models.Tag
CatCol models.Category
TopicCol models.Topic
ThemeCol models.Theme
MockPostSlug1 string
MockTopicSlug string
ErrorEmailAddress string
}
type globalVariables struct {
Defaults defaultVariables
GinEngine *gin.Engine
GormDB *gorm.DB
MgoDB *mgo.Session
}
type webPushSubscriptionPostBody struct {
Endpoint string `json:"endpoint"`
Keys string `json:"keys"`
ExpirationTime string `json:"expiration_time"`
UserID string `json:"user_id"`
}