summaryrefslogtreecommitdiffstats
path: root/einterfaces
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-08-16 10:29:45 -0700
committerChristopher Speller <crspeller@gmail.com>2017-08-16 10:29:45 -0700
commit29a7e182a6a9c2970b9c2c2d55062d17f33f084e (patch)
treef7b84c0e437d50011a968e0a940d4c1566406e99 /einterfaces
parent0ab490845aed0ce3b58cbffd8ec35be237abda1c (diff)
downloadchat-29a7e182a6a9c2970b9c2c2d55062d17f33f084e.tar.gz
chat-29a7e182a6a9c2970b9c2c2d55062d17f33f084e.tar.bz2
chat-29a7e182a6a9c2970b9c2c2d55062d17f33f084e.zip
PLT-6079 Adding leader election (#7105)
Diffstat (limited to 'einterfaces')
-rw-r--r--einterfaces/cluster.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/einterfaces/cluster.go b/einterfaces/cluster.go
index 096a775fe..9d61b7503 100644
--- a/einterfaces/cluster.go
+++ b/einterfaces/cluster.go
@@ -14,6 +14,7 @@ type ClusterInterface interface {
StopInterNodeCommunication()
RegisterClusterMessageHandler(event string, crm ClusterMessageHandler)
GetClusterId() string
+ IsLeader() bool
GetClusterInfos() []*model.ClusterInfo
SendClusterMessage(cluster *model.ClusterMessage)
NotifyMsg(buf []byte)