| 123456789101112131415161718192021222324252627282930313233343536373839 |
- package mod
- import (
- "fmt"
- )
- const (
- pxConf = "conf"
- pxUser = "user"
- pxRT = "rt"
- pxMap = "map"
- pxTmp = "tmp"
- )
- // index user by uid
- func kh_user(userId uint64) string {
- return fmt.Sprintf("%s:%v", pxUser, userId)
- }
- // user kicked
- func ks_kick(userId uint64) string {
- return fmt.Sprintf("%s:kick:%v", pxRT, userId)
- }
- func kh_user_agent(userId uint64) string {
- return fmt.Sprintf("%s:user_agent", pxRT)
- }
- func kz_agent_user(userId uint64) string {
- return fmt.Sprintf("%s:agent_users", pxRT)
- }
- func kh_user_logic(userId uint64) string {
- return fmt.Sprintf("%s:user_logic", pxRT)
- }
- func kh_logic_user(userId uint64) string {
- return fmt.Sprintf("%s:logic_users", pxRT)
- }
|