Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LockGit/gochat
/ GetSessionIdByUserId
Function
GetSessionIdByUserId
tools/commom.go:38–40 ·
view source on GitHub ↗
(userId int)
Source
from the content-addressed store, hash-verified
36
}
37
38
func
GetSessionIdByUserId(userId int) string {
39
return
fmt.Sprintf(
"sess_map_%d"
, userId)
40
}
41
42
func
GetSessionName(sessionId string) string {
43
return
SessionPrefix + sessionId
Callers
2
Login
Method · 0.92
Logout
Method · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected