| 37 | } |
| 38 | |
| 39 | type 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 | |
| 63 | type Slave struct { |
| 64 | //grpc server |
nothing calls this directly
no outgoing calls
no test coverage detected