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

Function pluginActionToCrud

server/plugins.go:706–716  ·  view source on GitHub ↗
(action int)

Source from the content-addressed store, hash-verified

704}
705
706func pluginActionToCrud(action int) pbx.Crud {
707 switch action {
708 case plgActCreate:
709 return pbx.Crud_CREATE
710 case plgActUpd:
711 return pbx.Crud_UPDATE
712 case plgActDel:
713 return pbx.Crud_DELETE
714 }
715 panic("plugin: unknown action")
716}
717
718// pluginIDAndTopic extracts message ID and topic name.
719func pluginIDAndTopic(msg *ClientComMessage) (string, string) {

Callers 4

pluginAccountFunction · 0.85
pluginTopicFunction · 0.85
pluginSubscriptionFunction · 0.85
pluginMessageFunction · 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…