MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / Master

Struct Master

lib/raft/raft.go:39–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39type Master struct {
40 //grpc server
41 proto.MasterGrpcServiceServer
42 //ID
43 ID string
44 //Addr
45 Addr string
46 //Master List
47 Peers []string
48 //Slave List
49 Slave []Slave
50 //Heartbeat
51 Heartbeat map[string]time.Time
52 //Filename to node,key is filename,value is node
53 FilenameToNode map[string]string
54 //Dir Tree
55 DirTree *dirtree.DirTree
56 //Raft
57 Raft raft.Raft
58 //Raft Log
59 RaftLog *boltdb.BoltStore
60 c *Cluster
61}
62
63type Slave struct {
64 //grpc server

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected