Этот коммит содержится в:
Corey Hulen
2017-09-05 07:58:30 -07:00
коммит произвёл GitHub
родитель 44e58bd100
Коммит 7843dc3cfa
2 изменённых файлов: 2 добавлений и 1 удалений

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

@@ -28,7 +28,7 @@ func GetLogs(page, perPage int) ([]string, *model.AppError) {
if einterfaces.GetClusterInterface() != nil && *utils.Cfg.ClusterSettings.Enable {
lines = append(lines, "-----------------------------------------------------------------------------------------------------------")
lines = append(lines, "-----------------------------------------------------------------------------------------------------------")
lines = append(lines, einterfaces.GetClusterInterface().GetClusterId())
lines = append(lines, einterfaces.GetClusterInterface().GetMyClusterInfo().Hostname)
lines = append(lines, "-----------------------------------------------------------------------------------------------------------")
lines = append(lines, "-----------------------------------------------------------------------------------------------------------")
}

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

@@ -15,6 +15,7 @@ type ClusterInterface interface {
RegisterClusterMessageHandler(event string, crm ClusterMessageHandler)
GetClusterId() string
IsLeader() bool
GetMyClusterInfo() *model.ClusterInfo
GetClusterInfos() []*model.ClusterInfo
SendClusterMessage(cluster *model.ClusterMessage)
NotifyMsg(buf []byte)