mattermost/server/channels/app/cluster_discovery.go
2023-10-11 10:13:36 +02:00

16 lines
338 B
Go

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package app
func (s *Server) IsLeader() bool {
return s.platform.IsLeader()
}
func (a *App) IsLeader() bool {
return a.Srv().IsLeader()
}
func (a *App) GetClusterId() string {
return a.Srv().Platform().GetClusterId()
}