consts

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserOnlineAgentKeyPrefix  = "userOnlineAgent:%s"  // userOnlineAgent:uid
	UserOfflineQueueKeyPrefix = "userOfflineQueue:%s" // 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 string) string

func GetUserOnlineAgentKey

func GetUserOnlineAgentKey(uid string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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