syncthing/lib
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
..
auto build: Generate gui.files.go on the fly, remove from repo 2016-03-28 10:03:13 +00:00
beacon Remove unused struct field 2015-10-27 09:55:05 +01:00
config lib/config: Don't require restart when adding folders/devices or changing listen address 2016-05-09 11:30:19 +00:00
connections lib/connections: Don't look at devices that are already optimally connected 2016-05-09 15:33:25 +00:00
db lib/model: Fix accounting error in rescan with multiple subs (fixes #3028) 2016-05-09 12:56:21 +00:00
dialer lib/dialer: Add env var to disable proxy fallback (fixes #3006) 2016-04-24 16:30:20 +00:00
discover all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
events lib/connections: Refactor 2016-05-04 19:38:12 +00:00
ignore all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
logger cmd/syncthing: Extract interfaces for things the API depends on 2016-03-21 19:36:08 +00:00
model lib/scanner: Refactor scanner.Walk API 2016-05-09 18:25:39 +00:00
nat lib/connections: Refactor 2016-05-04 19:38:12 +00:00
osutil all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
pmp lib/{nat,pmp}: Fix shadowing and nil IPs 2016-04-16 16:48:07 +00:00
protocol all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
rc cmd/stbench: Add utility to run benchmark tests 2016-03-25 20:52:20 +00:00
relay all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
scanner lib/scanner: Refactor scanner.Walk API 2016-05-09 18:25:39 +00:00
signature The PublicKey() method is an addition in Go 1.4 2015-10-27 16:03:14 +01:00
stats We should pass around db.Instance instead of leveldb.DB 2015-10-31 12:35:30 +01:00
symlinks Fix import paths 2015-09-22 19:38:46 +02:00
sync lib/sync: Skip the timing tests if the host timer is flaky 2016-03-27 10:41:38 +00:00
tlsutil Generate ECDSA keys instead of RSA 2015-11-27 09:15:12 +01:00
upgrade lib/upgrade: Don't attempt processing files larger than expected max binary size (ref #3045) 2016-05-06 14:14:19 +00:00
upnp lib/upnp: Fix port order 2016-04-16 22:44:07 +00:00
util cmd/syncthing: Use random folder ID for default folder, limit random charset 2016-05-09 09:43:40 +00:00
versioner lib/versioner: Refactor for testing, speed up test 2016-04-15 14:26:39 +00:00