MCPcopy 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
38func GetSessionIdByUserId(userId int) string {
39 return fmt.Sprintf("sess_map_%d", userId)
40}
41
42func GetSessionName(sessionId string) string {
43 return SessionPrefix + sessionId

Callers 2

LoginMethod · 0.92
LogoutMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected