Start starts a new sync instance
(onInitUploadDone chan struct{}, onInitDownloadDone chan struct{}, onDone chan struct{}, onError chan error)
| 164 | |
| 165 | // Start starts a new sync instance |
| 166 | func (s *Sync) Start(onInitUploadDone chan struct{}, onInitDownloadDone chan struct{}, onDone chan struct{}, onError chan error) error { |
| 167 | s.onError = onError |
| 168 | s.onDone = onDone |
| 169 | |
| 170 | // start pinging the underlying connection |
| 171 | s.downstream.startPing(onDone) |
| 172 | s.upstream.startPing(onDone) |
| 173 | |
| 174 | s.mainLoop(onInitUploadDone, onInitDownloadDone) |
| 175 | return nil |
| 176 | } |
| 177 | |
| 178 | func (s *Sync) initIgnoreParsers() error { |
| 179 | if s.Options.ExcludePaths != nil { |