Skip to content
File

Blob: spec/chord/state.go

go20 lines
1//go:generate stringer -type=State
2package chord
3 
4type State uint64
5 
6const (
7 // Node not running, default state
8 Inactive State = iota
9 // In the progress of joining the network
10 Joining
11 // Ready to handle lookup and KV requests
12 Active
13 // Handling join request from another node
14 Transferring
15 // Leaving and transferring keys to successor
16 Leaving
17 // No longer an active node
18 Left
19)