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

Function pbInfoNoteWhatSerialize

server/pbconverter.go:748–763  ·  view source on GitHub ↗
(what string)

Source from the content-addressed store, hash-verified

746}
747
748func pbInfoNoteWhatSerialize(what string) pbx.InfoNote {
749 var out pbx.InfoNote
750 switch what {
751 case "kp":
752 out = pbx.InfoNote_KP
753 case "read":
754 out = pbx.InfoNote_READ
755 case "recv":
756 out = pbx.InfoNote_RECV
757 case "call":
758 out = pbx.InfoNote_CALL
759 default:
760 logs.Info.Println("unknown info-note.what", what)
761 }
762 return out
763}
764
765func pbInfoNoteWhatDeserialize(what pbx.InfoNote) string {
766 var out string

Callers 2

pbServInfoSerializeFunction · 0.85
pbCliSerializeFunction · 0.85

Calls 1

PrintlnMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…