mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
It was a good decision in hindsight to keep the public module as 0.x because this would have been a breaking change again. https://mattermost.atlassian.net/browse/MM-53032 ```release-note Changed the Go module path from github.com/mattermost/mattermost-server/server/v8 to github.com/mattermost/mattermost/server/v8. For the public facing module, it's path is also changed from github.com/mattermost/mattermost-server/server/public to github.com/mattermost/mattermost/server/public ```
33 lines
1.3 KiB
Go
33 lines
1.3 KiB
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package einterfaces
|
|
|
|
import (
|
|
"github.com/mattermost/mattermost/server/public/model"
|
|
)
|
|
|
|
type ClusterMessageHandler func(msg *model.ClusterMessage)
|
|
|
|
type ClusterInterface interface {
|
|
StartInterNodeCommunication()
|
|
StopInterNodeCommunication()
|
|
RegisterClusterMessageHandler(event model.ClusterEvent, crm ClusterMessageHandler)
|
|
GetClusterId() string
|
|
IsLeader() bool
|
|
// HealthScore returns a number which is indicative of how well an instance is meeting
|
|
// the soft real-time requirements of the protocol. Lower numbers are better,
|
|
// and zero means "totally healthy".
|
|
HealthScore() int
|
|
GetMyClusterInfo() *model.ClusterInfo
|
|
GetClusterInfos() []*model.ClusterInfo
|
|
SendClusterMessage(msg *model.ClusterMessage)
|
|
SendClusterMessageToNode(nodeID string, msg *model.ClusterMessage) error
|
|
NotifyMsg(buf []byte)
|
|
GetClusterStats() ([]*model.ClusterStats, *model.AppError)
|
|
GetLogs(page, perPage int) ([]string, *model.AppError)
|
|
QueryLogs(page, perPage int) (map[string][]string, *model.AppError)
|
|
GetPluginStatuses() (model.PluginStatuses, *model.AppError)
|
|
ConfigChanged(previousConfig *model.Config, newConfig *model.Config, sendToOtherServer bool) *model.AppError
|
|
}
|