| giolekva | 1f6577a | 2020-03-25 12:53:06 +0400 | [diff] [blame] | 1 | package master |
| 2 | |||||
| 3 | import ( | ||||
| giolekva | d2a029d | 2020-03-25 23:06:08 +0400 | [diff] [blame] | 4 | "github.com/giolekva/pcloud/api" |
| giolekva | 1f6577a | 2020-03-25 12:53:06 +0400 | [diff] [blame] | 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 | } | ||||