Full Mattermost server source with integrated Community Enterprise features. Includes vendor directory for offline/air-gapped builds. Structure: - enterprise-impl/: Enterprise feature implementations - enterprise-community/: Init files that register implementations - enterprise/: Bridge imports (community_imports.go) - vendor/: All dependencies for offline builds Build (online): go build ./cmd/mattermost Build (offline/air-gapped): go build -mod=vendor ./cmd/mattermost 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
805 B
Go
24 lines
805 B
Go
package pluginapi
|
|
|
|
import (
|
|
"github.com/mattermost/mattermost/server/public/model"
|
|
"github.com/mattermost/mattermost/server/public/plugin"
|
|
)
|
|
|
|
// ClusterService exposes methods to interact with cluster nodes.
|
|
type ClusterService struct {
|
|
api plugin.API
|
|
}
|
|
|
|
// ClusterService 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
|
|
func (c *ClusterService) PublishPluginEvent(ev model.PluginClusterEvent, opts model.PluginClusterEventSendOptions) error {
|
|
return c.api.PublishPluginClusterEvent(ev, opts)
|
|
}
|