Documentation ¶
Index ¶
Constants ¶
View Source
const ( EVENT_JOIN = iota EVENT_LEAVE EVENT_MESSAGE EVENT_BIZ_EXCEPTION )
View Source
const ( USER_TYPE_ADMIN = "admin" USER_TYPE_MANAGER = "manager" USER_TYPE_USER = "user" )
Variables ¶
View Source
var RedisConnPool *redis.Pool
RedisConnPool redis 连接池
Functions ¶
func IsRoomConfigInit ¶
IsRoomConfigInit 检查房间配置是否初始化,否则初始化
func SetRoomMaxOnline ¶
SetRoomMaxOnline 更新聊天室最大在线人数
Types ¶
Click to show internal directories.
Click to hide internal directories.