syncthing/lib/config
Jakob Borg 4e151d380c lib/versioner: Reduce surface area (#6186)
* lib/versioner: Reduce surface area

This is a refactor while I was anyway rooting around in the versioner.
Instead of exporting every possible implementation and the factory and
letting the caller do whatever, this now encapsulates all that and
exposes a New() that takes a config.VersioningConfiguration.

Given that and that we don't know (from the outside) how a versioner
works or what state it keeps, we now just construct it once per folder
and keep it around. Previously it was recreated for each restore
request.

* unparam

* wip
2019-11-26 07:39:31 +00:00
..
testdata lib/config: Error on empty folder path (fixes #5853) (#5854) 2019-07-14 11:03:14 +02:00
authmode.go cmd/syncthing: Add LDAP authentication for GUI (fixes #5163) (#5169) 2018-09-11 23:25:24 +02:00
commit_test.go all: Remove global events.Default (ref #4085) (#5886) 2019-08-15 16:29:37 +02:00
config.go lib: Wrap errors with errors.Wrap instead of fmt.Errorf (#6181) 2019-11-23 15:20:54 +00:00
config_test.go all: Remove global events.Default (ref #4085) (#5886) 2019-08-15 16:29:37 +02:00
debug.go all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
deviceconfiguration.go all: Use new reflect based CLI (#5487) 2019-02-12 07:58:24 +01:00
folderconfiguration.go lib/versioner: Reduce surface area (#6186) 2019-11-26 07:39:31 +00:00
foldertype.go all: Add receive only folder type (#5027) 2018-07-12 11:15:57 +03:00
guiconfiguration.go cmd/syncthing: Listen on UNIX socket (fixes #3616) (#5210) 2018-09-21 14:28:57 +02:00
ldapconfiguration.go cmd/syncthing: Add LDAP authentication for GUI (fixes #5163) (#5169) 2018-09-11 23:25:24 +02:00
ldaptransport.go cmd/syncthing: Add LDAP authentication for GUI (fixes #5163) (#5169) 2018-09-11 23:25:24 +02:00
migrations.go lib/ur: Implement crash (panic) reporting (fixes #959) (#5702) 2019-06-11 08:19:11 +02:00
migrations_test.go lib/ur: Implement crash (panic) reporting (fixes #959) (#5702) 2019-06-11 08:19:11 +02:00
observed.go lib/config: Rewrite pending notifications (fixes #2291) 2018-08-25 11:36:10 +01:00
optionsconfiguration.go lib/db: Use different defaults for larger databases (fixes #5966) (#5967) 2019-08-20 09:41:41 +02:00
pullorder.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
size.go lib/config: Format bytes in insufficient space errors (fixes #5920) (#5921) 2019-08-02 14:43:05 +02:00
size_test.go lib/config: Format bytes in insufficient space errors (fixes #5920) (#5921) 2019-08-02 14:43:05 +02:00
tuning.go lib/db: Use different defaults for larger databases (fixes #5966) (#5967) 2019-08-20 09:41:41 +02:00
tuning_test.go lib/db: Use different defaults for larger databases (fixes #5966) (#5967) 2019-08-20 09:41:41 +02:00
versioningconfiguration.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
wrapper.go all: Remove global events.Default (ref #4085) (#5886) 2019-08-15 16:29:37 +02:00