| giolekva | 892a4e2 | 2020-04-27 16:46:22 +0400 | [diff] [blame^] | 1 | package controller |
| 2 | |||||
| 3 | import ( | ||||
| 4 | "github.com/giolekva/pcloud/pfs/api" | ||||
| 5 | ) | ||||
| 6 | |||||
| 7 | type chunkServerStatus int | ||||
| 8 | |||||
| 9 | const ( | ||||
| 10 | Healthy chunkServerStatus = iota | ||||
| 11 | UNREACHABLE | ||||
| 12 | ) | ||||
| 13 | |||||
| 14 | type chunkServer struct { | ||||
| 15 | address string | ||||
| 16 | status chunkServerStatus | ||||
| 17 | chunks map[string]api.ChunkStatus | ||||
| 18 | } | ||||