[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
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
7dc1718c1d
Коммит
6af032d06a
@@ -1050,6 +1050,16 @@ type API interface {
|
||||
// @tag SlashCommand
|
||||
// Minimum server version: 5.28
|
||||
DeleteCommand(commandID string) error
|
||||
|
||||
// PublishPluginClusterEvent broadcasts a plugin event to all other running instances of
|
||||
// the calling plugin that are present in the cluster.
|
||||
//
|
||||
// This method is used to allow plugin communication in a High-Availability cluster.
|
||||
// The receiving side should implement the OnPluginClusterEvent hook
|
||||
// to receive events sent through this method.
|
||||
//
|
||||
// Minimum server version: 5.36
|
||||
PublishPluginClusterEvent(ev model.PluginClusterEvent, opts model.PluginClusterEventSendOptions) error
|
||||
}
|
||||
|
||||
var handshake = plugin.HandshakeConfig{
|
||||
|
||||
Ссылка в новой задаче
Block a user