(action int)
| 704 | } |
| 705 | |
| 706 | func 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. |
| 719 | func pluginIDAndTopic(msg *ClientComMessage) (string, string) { |
no outgoing calls
no test coverage detected
searching dependent graphs…