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

Function pbServInfoSerialize

server/pbconverter.go:99–111  ·  view source on GitHub ↗
(info *MsgServerInfo)

Source from the content-addressed store, hash-verified

97}
98
99func pbServInfoSerialize(info *MsgServerInfo) *pbx.ServerMsg_Info {
100 return &pbx.ServerMsg_Info{
101 Info: &pbx.ServerInfo{
102 Topic: info.Topic,
103 FromUserId: info.From,
104 Src: info.Src,
105 What: pbInfoNoteWhatSerialize(info.What),
106 SeqId: int32(info.SeqId),
107 Event: pbCallEventSerialize(info.Event),
108 Payload: info.Payload,
109 },
110 }
111}
112
113func pbServMetaSerialize(meta *MsgServerMeta) *pbx.ServerMsg_Meta {
114 return &pbx.ServerMsg_Meta{

Callers 1

pbServSerializeFunction · 0.85

Calls 2

pbInfoNoteWhatSerializeFunction · 0.85
pbCallEventSerializeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…