mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
21 lines
467 B
Go
21 lines
467 B
Go
// Copyright 2022 Molecula Corp. (DBA FeatureBase).
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
package pilosa
|
|
|
|
import "github.com/featurebasedb/featurebase/v3/disco"
|
|
|
|
// 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 *disco.Node
|
|
}
|