Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MonitorDB mongo.DB
)
Functions ¶
func Initialize ¶
Types ¶
type AlertTypes ¶
type AlertTypes struct {
ID bson.ObjectId `bson:"_id,omitempty" json:"mongo_id"`
Name string `bson:"name" json:"name"`
PushToken string `bson:"push_token" json:"push_token"`
JoinKey string `bson:"join_key" json:"join_key"`
CreatedAt time.Time `bson:"created_at" json:"created_at"`
ModifiedAt time.Time `bson:"modified_at" json:"modified_at"`
}
AlertTypes type of alert
type UserAlertRelations ¶
type UserAlertRelations struct {
ID bson.ObjectId `bson:"_id,omitempty" json:"mongo_id"`
CreatedAt time.Time `bson:"created_at" json:"created_at"`
ModifiedAt time.Time `bson:"modified_at" json:"modified_at"`
UserMongoID bson.ObjectId `bson:"user_id" json:"user_id"`
AlertMongoID bson.ObjectId `bson:"alert_id" json:"alert_id"`
}
Click to show internal directories.
Click to hide internal directories.