Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOpts = Opts{ NeedRedis: true, NeedMongodb: true, NeedAuthService: true, }
Functions ¶
Types ¶
type Notification ¶
type Notification struct { Id primitive.ObjectID `bson:"_id,omitempty"` SenderId primitive.ObjectID `bson:"sender_id,omitempty"` RoomId primitive.ObjectID `bson:"room_id,omitempty"` NotificationRoomId primitive.ObjectID `bson:"notification_room_id,omitempty"` Content string // TODO CreateAt time.Time `bson:"create_at"` ReadNotification bool `bson:"read_notification"` }
type NotificationRoom ¶
type Room ¶
type Room struct { Id primitive.ObjectID `bson:"_id,omitempty"` Name string `bson:"name"` Description string `bson:"description"` AllowUsers []string // TODO:#feature UserId string // TODO:#feature, add how user create this room IsOpen bool // TODO: #feature CreateAt time.Time `json:"create_at"` CloseAt time.Time // TODO: #feature }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.