-
Notifications
You must be signed in to change notification settings - Fork 35
/
cmds.go
54 lines (51 loc) · 1.28 KB
/
cmds.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package beehive
import "encoding/gob"
type cmdAddFollower struct {
Hive uint64
Bee uint64
}
type cmdAddHive struct{ Hive HiveInfo }
type cmdCampaign struct{}
type cmdCreateBee struct{}
type cmdFindBee struct{ ID uint64 }
type cmdHandoff struct{ To uint64 }
type cmdRestoreState struct{ State []byte }
type cmdJoinColony struct{ Colony Colony }
type cmdAddMappedCells struct{ Cells MappedCells }
type cmdRefreshRole struct{}
type cmdLiveHives struct{}
type cmdMigrate struct {
Bee uint64
To uint64
}
type cmdNewHiveID struct{}
type cmdPing struct{}
type cmdReloadBee struct {
ID uint64
Colony Colony
}
type cmdStart struct{}
type cmdStartDetached struct{ Handler DetachedHandler }
type cmdStop struct{}
type cmdSync struct{}
func init() {
gob.Register(cmdAddFollower{})
gob.Register(cmdAddHive{})
gob.Register(cmdAddMappedCells{})
gob.Register(cmdCampaign{})
gob.Register(cmdCreateBee{})
gob.Register(cmdFindBee{})
gob.Register(cmdHandoff{})
gob.Register(cmdJoinColony{})
gob.Register(cmdLiveHives{})
gob.Register(cmdMigrate{})
gob.Register(cmdNewHiveID{})
gob.Register(cmdPing{})
gob.Register(cmdRefreshRole{})
gob.Register(cmdReloadBee{})
gob.Register(cmdRestoreState{})
gob.Register(cmdStartDetached{})
gob.Register(cmdStart{})
gob.Register(cmdStop{})
gob.Register(cmdSync{})
}