consts

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserOnlineAgentKeyPrefix  = "userOnlineAgent:%d"  // userOnlineAgent:uid
	UserOfflineQueueKeyPrefix = "userOfflineQueue:%d" // userOfflineQueue:uid
	UserOnlineAgentKeyExpire  = time.Second * 30
	UserOfflineQueueKeyExpire = time.Hour * 24 * 7
	UserOfflineQueueMemberMax = 1000 // only store latest 1000 offline messages
)

Variables

This section is empty.

Functions

func GetUserOfflineQueueKey

func GetUserOfflineQueueKey(uid int64) string

func GetUserOnlineAgentKey

func GetUserOnlineAgentKey(uid int64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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