MCPcopy Index your code
hub / github.com/tinode/chat / genTopicName

Function genTopicName

server/topic.go:3984–3986  ·  view source on GitHub ↗

Generate the name of the group topic as a "grp" followed by random-looking unique string.

()

Source from the content-addressed store, hash-verified

3982// Generate the name of the group topic as a "grp" followed by random-looking
3983// unique string.
3984func genTopicName() string {
3985 return "grp" + store.Store.GetUidString()
3986}
3987
3988// Convert expanded (routable) topic name into name suitable for sending to the user.
3989// For example p2pAbCDef123 -> usrAbCDef

Callers 1

genLocalTopicNameMethod · 0.70

Calls 1

GetUidStringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…