[MM-35077] Add basic support for plugin intra-cluster communication (#17495)

* Add basic support for plugin intra-cluster communication

* Some renaming for added clarity

* Allow sending cluster event to specific nodes

* Improve naming and documentation

* Improve logging
Этот коммит содержится в:
Claudio Costa
2021-04-28 19:59:32 +02:00
коммит произвёл GitHub
родитель 7dc1718c1d
Коммит 6af032d06a
15 изменённых файлов: 236 добавлений и 4 удалений

Просмотреть файл

@@ -194,6 +194,11 @@ func (_m *Hooks) OnDeactivate() error {
return r0
}
// OnPluginClusterEvent provides a mock function with given fields: c, ev
func (_m *Hooks) OnPluginClusterEvent(c *plugin.Context, ev model.PluginClusterEvent) {
_m.Called(c, ev)
}
// ReactionHasBeenAdded provides a mock function with given fields: c, reaction
func (_m *Hooks) ReactionHasBeenAdded(c *plugin.Context, reaction *model.Reaction) {
_m.Called(c, reaction)