MCPcopy Create free account
hub / github.com/daodst/chat / topicKey

Method topicKey

server/hub.go:117–119  ·  view source on GitHub ↗
(appid uint32, name string)

Source from the content-addressed store, hash-verified

115}
116
117func (h *Hub) topicKey(appid uint32, name string) string {
118 return strconv.FormatInt(int64(appid), 32) + "!" + name
119}
120
121func (h *Hub) topicGet(appid uint32, name string) *Topic {
122 return h.topics[h.topicKey(appid, name)]

Callers 3

topicGetMethod · 0.95
topicPutMethod · 0.95
topicDelMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected