Added channel repository and mongodb impl.
the build was successful

This commit is contained in:
2019-06-20 22:32:35 +02:00
parent 73a1c79903
commit f46b6f0774
6 changed files with 119 additions and 2 deletions
+17 -1
View File
@@ -13,4 +13,20 @@ type Channel struct {
// ChangeObject in GQL.
func (*Channel) IsChangeObject() {
panic("this method is a dummy, and so is its caller")
}
}
// ChannelFilter is a filter for channel listing.
type ChannelFilter struct {
Logged *bool `json:"logged"`
EventName *string `json:"eventName"`
LocationName *string `json:"locationName"`
Limit int `json:"limit"`
}
// ChannelUpdate is a filter for channel listing.
type ChannelUpdate struct {
Logged *bool `json:"logged"`
Hub *bool `json:"hub"`
EventName *string `json:"eventName"`
LocationName *string `json:"locationName"`
}