room

package
v0.0.0-...-f6d4ea8 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectionRoomUser = "room_user"
)

Variables

This section is empty.

Functions

func CreateRoomUsers

func CreateRoomUsers(appId, roomId string, userIds []string, temp bool) error

func DeleteRoomUsers

func DeleteRoomUsers(appId, roomId string, userIds []string) error

func DeleteTempRoomUsers

func DeleteTempRoomUsers(appId, userId string) error

Types

type RoomUser

type RoomUser struct {
	Id     primitive.ObjectID `bson:"_id,omitempty" json:"id"`
	AppId  string             `bson:"appId" json:"app_id"`
	RoomId string             `bson:"roomId" json:"room_id"`
	UserId string             `bson:"userId" json:"user_id"`
	Temp   bool               `bson:"temp" json:"temp"`
	UTime  time.Time          `bson:"utime" json:"utime"`
	CTime  time.Time          `bson:"ctime" json:"ctime"`
}

func FindRoomUsers

func FindRoomUsers(appId, groupId string) ([]*RoomUser, error)

func GetRoomUserByRUId

func GetRoomUserByRUId(appId, roomId, userId string) (*RoomUser, error)

Jump to

Keyboard shortcuts

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