syncthing/lib/model
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 mv internal lib 2015-08-09 09:35:26 +02:00
debug.go Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00
deviceactivity_test.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
deviceactivity.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
devicedownloadstate_test.go lib/model: Test should pass go vet inspections 2016-04-15 11:41:18 +00:00
devicedownloadstate.go all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
doc.go mv internal lib 2015-08-09 09:35:26 +02:00
folder.go lib/model: Refactor out folder and folderscan types, simplify somewhat 2016-04-26 14:01:46 +00:00
folderscan.go lib/model: Refactor out folder and folderscan types, simplify somewhat 2016-04-26 14:01:46 +00:00
folderstate.go lib/model: Refactor out folder and folderscan types, simplify somewhat 2016-04-26 14:01:46 +00:00
model_test.go lib/model: Fix accounting error in rescan with multiple subs (fixes #3028) 2016-05-09 12:56:21 +00:00
model.go lib/scanner: Refactor scanner.Walk API 2016-05-09 18:25:39 +00:00
progressemitter_test.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
progressemitter.go all: Clean up dead code 2016-04-22 21:15:36 +00:00
queue_test.go tests: messagediff argument order should be expected, actual 2016-03-17 08:03:29 +01:00
queue.go Tests must use locking to avoid race (fixes #2394) 2015-10-20 08:51:31 +02:00
rofolder.go lib/model: Use factories for creating folders 2016-05-04 10:47:33 +00:00
rwfolder_test.go lib/model: Prettify tests (fixes #3014) 2016-04-26 20:19:30 +00:00
rwfolder.go lib/model: Fix accounting error in rescan with multiple subs (fixes #3028) 2016-05-09 12:56:21 +00:00
sentdownloadstate.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
sharedpullerstate_test.go lib/model, lib/protocol: Implement temporary indexes (fixes #950) 2016-04-15 10:59:41 +00:00
sharedpullerstate.go lib/model: Do not use WRONLY (ref #2584) 2016-04-22 08:12:10 +00:00
tempname_test.go mv internal lib 2015-08-09 09:35:26 +02:00
tempname.go mv internal lib 2015-08-09 09:35:26 +02:00
util.go mv internal lib 2015-08-09 09:35:26 +02:00