Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UserDomain = &userDomain{db.C("users")} ChannelDomain = &channelDomain{db.C("channels")} MessageDomain = &messageDomain{db.C("messages")} )
Functions ¶
Types ¶
type AuthenticationRequest ¶
type Channel ¶
type Channel struct { Uid string `json:"uid"` Name string `json:"name",binding:"required"` Description string `json:"description",binding:"required"` Private bool `json:"isPrivate",binding:"required"` CreatedBy UserUid `json:"createdBy"` // the user UID of the admin Members []UserUid `json:"members"` }
type Message ¶
type Message struct { Uid string `json:"uid"` ChannelId string `json:"channelId",binding:"required"` UserId UserUid `json:"userId"` Text string `json:"text",binding:"required"` HasImage bool `json:"hasImage",omitempty` Attachment string `json:"attachment",omitempty` Timestamp time.Time `json:"timestamp"` // Unix time, in seconds IsAdminMsg bool `json:"isAdminMsg",omitempty` IsHtml bool `json:"isHtml",omitempty` }
Click to show internal directories.
Click to hide internal directories.