MCPcopy
hub / github.com/lonng/nano / UID

Method UID

session/session.go:112–114  ·  view source on GitHub ↗

UID returns uid that bind to current session

()

Source from the content-addressed store, hash-verified

110
111// UID returns uid that bind to current session
112func (s *Session) UID() int64 {
113 return atomic.LoadInt64(&s.uid)
114}
115
116// LastMid returns the last message id
117func (s *Session) LastMid() uint64 {

Callers 15

MemberMethod · 0.80
MembersMethod · 0.80
BroadcastMethod · 0.80
AddMethod · 0.80
LeaveMethod · 0.80
TestSession_BindFunction · 0.80
userDisconnectedMethod · 0.80
SyncMessageMethod · 0.80
userDisconnectedMethod · 0.80
userDisconnectedMethod · 0.80
handleMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestSession_BindFunction · 0.64