+ Base implementation of a differential synchronization based on Neil Fraser article/talk See https://www.youtube.com/watch?v=S2Hp_1jqpY8
15 lines
234 B
Go
15 lines
234 B
Go
package diffsync
|
|
|
|
type Versioned struct {
|
|
localVersion Version
|
|
remoteVersion Version
|
|
}
|
|
|
|
func (v *Versioned) LocalVersion() Version {
|
|
return v.localVersion
|
|
}
|
|
|
|
func (v *Versioned) RemoteVersion() Version {
|
|
return v.remoteVersion
|
|
}
|