MCPcopy Index your code
hub / github.com/dearcode/candy / online

Method online

gate/server.go:111–116  ·  view source on GitHub ↗
(s *session, id int64)

Source from the content-addressed store, hash-verified

109}
110
111func (g *Gate) online(s *session, id int64) {
112 s.online(id)
113 g.Lock()
114 g.ids[s.id] = s
115 g.Unlock()
116}
117
118func (g *Gate) getOnlineUser(id int64) *session {
119 g.RLock()

Callers 1

LoginMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected