Documentation ¶
Index ¶
- func ChangeAuthorUsernameOnPresences(oldUsername, newUsername string) error
- func CheckAllPresences() ([]bson.M, error)
- func CountPresences() (int, error)
- func Delete(user tat.User, topic tat.Topic) error
- func ListPresences(criteria *tat.PresenceCriteria) (int, []tat.Presence, error)
- func ListPresencesAllFields(criteria *tat.PresenceCriteria) (int, []tat.Presence, error)
- func Upsert(presence *tat.Presence, user tat.User, topic tat.Topic, status string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeAuthorUsernameOnPresences ¶
ChangeAuthorUsernameOnPresences changes username on presences collection
func CheckAllPresences ¶
CheckAllPresences detects duplicate
func CountPresences ¶
CountPresences returns the total number of presences in db
func ListPresences ¶
ListPresences returns list of presences, but only field status, dateTimePresence,datePresence,userPresence
func ListPresencesAllFields ¶
ListPresencesAllFields returns list of presences, with given criteria
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.