Add Local Version field to files, send index in segments.

This commit is contained in:
Jakob Borg
2014-07-15 13:04:37 +02:00
parent fccdd85cc1
commit 8b349945de
16 changed files with 291 additions and 288 deletions

View File

@@ -12,11 +12,12 @@ type IndexMessage struct {
}
type FileInfo struct {
Name string // max:1024
Flags uint32
Modified int64
Version uint64
Blocks []BlockInfo // max:1000000
Name string // max:1024
Flags uint32
Modified int64
Version uint64
LocalVersion uint64
Blocks []BlockInfo // max:1000000
}
func (f FileInfo) String() string {
@@ -69,9 +70,9 @@ type Repository struct {
}
type Node struct {
ID []byte // max:32
Flags uint32
MaxVersion uint64
ID []byte // max:32
Flags uint32
MaxLocalVersion uint64
}
type Option struct {