presence

package
v5.2.5+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2018 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeAuthorUsernameOnPresences

func ChangeAuthorUsernameOnPresences(oldUsername, newUsername string) error

ChangeAuthorUsernameOnPresences changes username on presences collection

func CheckAllPresences

func CheckAllPresences() ([]bson.M, error)

CheckAllPresences detects duplicate

func CountPresences

func CountPresences() (int, error)

CountPresences returns the total number of presences in db

func Delete

func Delete(user tat.User, topic tat.Topic) error

Delete all presences of one user on one topic

func ListPresences

func ListPresences(criteria *tat.PresenceCriteria) (int, []tat.Presence, error)

ListPresences returns list of presences, but only field status, dateTimePresence,datePresence,userPresence

func ListPresencesAllFields

func ListPresencesAllFields(criteria *tat.PresenceCriteria) (int, []tat.Presence, error)

ListPresencesAllFields returns list of presences, with given criteria

func Upsert

func Upsert(presence *tat.Presence, user tat.User, topic tat.Topic, status string) error

Upsert insert of update a presence (user / topic)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL