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

Function parseMsgClientMeta

server/datamodel.go:208–232  ·  view source on GitHub ↗
(params string)

Source from the content-addressed store, hash-verified

206)
207
208func parseMsgClientMeta(params string) int {
209 var bits int
210 parts := strings.SplitN(params, " ", 8)
211 for _, p := range parts {
212 switch p {
213 case "desc":
214 bits |= constMsgMetaDesc
215 case "sub":
216 bits |= constMsgMetaSub
217 case "data":
218 bits |= constMsgMetaData
219 case "tags":
220 bits |= constMsgMetaTags
221 case "del":
222 bits |= constMsgMetaDel
223 case "cred":
224 bits |= constMsgMetaCred
225 case "aux":
226 bits |= constMsgMetaAux
227 default:
228 // ignore unknown
229 }
230 }
231 return bits
232}
233
234func parseMsgClientDel(params string) int {
235 switch params {

Callers 2

getMethod · 0.85
handleSubscriptionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…