diff --git a/broadcast.go b/broadcast.go index 976527779..b12dc0896 100644 --- a/broadcast.go +++ b/broadcast.go @@ -92,6 +92,7 @@ func (n *nopBroadcastReceiver) Start(b BroadcastHandler) error { return nil } // NopBroadcastReceiver is a no op implementation of the BroadcastReceiver var NopBroadcastReceiver = &nopBroadcastReceiver{} +// Broadcast message types const ( MessageTypeCreateSlice = 1 MessageTypeCreateIndex = 2 diff --git a/cluster.go b/cluster.go index 55c57125e..a6bcade81 100644 --- a/cluster.go +++ b/cluster.go @@ -13,8 +13,10 @@ const ( // DefaultReplicaN is the default number of replicas per partition. DefaultReplicaN = 1 +) - // NodeState represents node state returned in /status endpoint for a node in the cluster. +// NodeState represents node state returned in /status endpoint for a node in the cluster. +const ( NodeStateUp = "UP" NodeStateDown = "DOWN" )