| commit | 1f6577a9590598498293bce1f653da7103021991 | [log] [tgz] |
|---|---|---|
| author | giolekva <giolekva@gmail.com> | Wed Mar 25 12:53:06 2020 +0400 |
| committer | giolekva <giolekva@gmail.com> | Wed Mar 25 12:53:06 2020 +0400 |
| tree | 38893b3c137077b7ad9eaad649367c276a3e2487 | |
| parent | cc47c367b7cd839fcc4a87bf2de3113301591cbc [diff] [blame] |
Basic file uploader implemetation. Does not wait for replication to finish.
diff --git a/master/chunk.go b/master/chunk.go new file mode 100644 index 0000000..00798c9 --- /dev/null +++ b/master/chunk.go
@@ -0,0 +1,18 @@ +package master + +import ( + "pcloud/api" +) + +type chunkServerStatus int + +const ( + Healthy chunkServerStatus = iota + UNREACHABLE +) + +type chunkServer struct { + address string + status chunkServerStatus + chunks map[string]api.ChunkStatus +}