MCPcopy
hub / github.com/tinode/chat / IsZero

Method IsZero

server/store/types/types.go:73–75  ·  view source on GitHub ↗

IsZero checks if Uid is uninitialized.

()

Source from the content-addressed store, hash-verified

71
72// IsZero checks if Uid is uninitialized.
73func (uid Uid) IsZero() bool {
74 return uid == ZeroUid
75}
76
77// Compare returns 0 if uid is equal to u2, 1 if u2 is greater than uid, -1 if u2 is smaller.
78func (uid Uid) Compare(u2 Uid) int {

Callers 15

genDbFunction · 0.95
topicUnregMethod · 0.95
handleLeaveRequestMethod · 0.95
replySetSubMethod · 0.95
replyDelUserFunction · 0.95
makeClusterReqMethod · 0.95
PrefixIdMethod · 0.95
P2PNameMethod · 0.95
UsersForTopicMethod · 0.95
UsersForTopicMethod · 0.95
UsersForTopicMethod · 0.95

Calls

no outgoing calls

Tested by 5

TestAuthGetUniqueRecordFunction · 0.36
TestAuthGetUniqueRecordFunction · 0.36
TestAuthGetUniqueRecordFunction · 0.36
TestSubsDeleteFunction · 0.36
TestAuthGetUniqueRecordFunction · 0.36