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

Function decodeUid

server/db/postgres/tests/postgres_test.go:161–163  ·  view source on GitHub ↗
(u string)

Source from the content-addressed store, hash-verified

159}
160
161func decodeUid(u string) int64 {
162 return store.DecodeUid(types.ParseUid(u))
163}
164
165func encodeUid(u string) types.Uid {
166 id, _ := strconv.ParseInt(u, 10, 64)

Callers 12

TestTopicCreateP2PFunction · 0.70
TestUserUpdateFunction · 0.70
TestCredFailFunction · 0.70
TestCredConfirmFunction · 0.70
TestTopicOwnerChangeFunction · 0.70
TestSubsUpdateFunction · 0.70
TestSubsDeleteFunction · 0.70
TestDeviceUpsertFunction · 0.70
TestDeviceDeleteFunction · 0.70
TestCredDelFunction · 0.70
TestMessageDeleteListFunction · 0.70
TestUserDeleteFunction · 0.70

Calls 2

DecodeUidFunction · 0.92
ParseUidFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…