// Copyright 2021 Molecula Corp. All rights reserved.
package pilosa

import "github.com/molecula/featurebase/v3/topology"

// NodeEventType are the types of node events.
type NodeEventType int

// Constant node event types.
const (
	NodeJoin NodeEventType = iota
	NodeLeave
	NodeUpdate
)

// NodeEvent is a single event related to node activity in the cluster.
type NodeEvent struct {
	Event NodeEventType
	Node  *topology.Node
}
