storage

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(cache *cache.Cache, close <-chan struct{})

Add a cache to storage and wait for closing

func GetCurrentVideoTitle

func GetCurrentVideoTitle(roomUUID string) string

GetCurrentVideoTitle return current video title by roomPath

func GetUserUUIDByID

func GetUserUUIDByID(userID, roomUUID string) (string, bool, error)

GetUserUUIDByID search in all caches user with userID and return his UUID

func GetUsersCount

func GetUsersCount(roomUUID string) int

GetUsersCount return users count in room by roomPath

func Size

func Size() int

Size return storage size

func UpdateEmojiList

func UpdateEmojiList(roomUUID string)

UpdateEmojiList in room

func UpdatePermissions

func UpdatePermissions(id, roomUUID string, level int)

UpdatePermissions update permissions in a room

func UpdateRole

func UpdateRole(id, roomUUID string, level int)

UpdateRole add a new role for a user in a cache and update a roles cache

func UpdateUser

func UpdateUser(userUUID string)

UpdateUser user in cache

Types

This section is empty.

Jump to

Keyboard shortcuts

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