mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
```bash for file in `cat diffys`; do printf '%s\n%s\n' "// Copyright 2021 Molecula Corp. All rights reserved." "$(cat $file)" >$file; done ```
20 lines
431 B
Go
20 lines
431 B
Go
// Copyright 2021 Molecula Corp. All rights reserved.
|
|
package pilosa
|
|
|
|
import "github.com/molecula/featurebase/v2/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
|
|
}
|