syncthing/lib/scanner
Jakob Borg 21e116aa45 lib/scanner: Refactor scanner.Walk API
The old usage pattern was to create a Walker with a bunch of attributes,
then call Walk() on it and nothing else. This extracts the attributes
into a Config struct and exposes a Walk(cfg Config) method instead, as
there was no reason to expose the state-holding walker type.

Also creates a few no-op implementations of the necessary interfaces
so that we can skip nil checks and simiplify things here and there.

Definitely look at this diff without whitespace.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3060
2016-05-09 18:25:39 +00:00
..
testdata mv internal lib 2015-08-09 09:35:26 +02:00
.gitignore Add benchmark of HashFile 2015-10-27 09:30:34 +01:00
blockqueue.go all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
blocks_test.go Fix import paths 2015-09-22 19:38:46 +02:00
blocks.go lib: Use bytes.Equal instead of bytes.Compare where possible 2016-03-31 15:12:46 +00:00
debug.go Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00
doc.go mv internal lib 2015-08-09 09:35:26 +02:00
walk_test.go lib/scanner: Refactor scanner.Walk API 2016-05-09 18:25:39 +00:00
walk.go lib/scanner: Refactor scanner.Walk API 2016-05-09 18:25:39 +00:00