syncthing/lib/config
Jakob Borg c71116ee94
Implement database abstraction, error checking (ref #5907) (#6107)
This PR does two things, because one lead to the other:

- Move the leveldb specific stuff into a small "backend" package that
defines a backend interface and the leveldb implementation. This allows,
potentially, in the future, switching the db implementation so another
KV store should we wish to do so.

- Add proper error handling all along the way. The db and backend
packages are now errcheck clean. However, I drew the line at modifying
the FileSet API in order to keep this manageable and not continue
refactoring all of the rest of Syncthing. As such, the FileSet methods
still panic on database errors, except for the "database is closed"
error which is instead handled by silently returning as quickly as
possible, with the assumption that we're anyway "on the way out".
2019-11-29 09:11:52 +01: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/config, lib/connections: Remove ListenAddresses hack (#6188) 2019-11-26 17:07:25 +01:00
config_test.go lib/config, lib/connections: Remove ListenAddresses hack (#6188) 2019-11-26 17:07:25 +01: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/config, lib/connections: Remove ListenAddresses hack (#6188) 2019-11-26 17:07:25 +01: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/config, lib/connections: Remove ListenAddresses hack (#6188) 2019-11-26 17:07:25 +01: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 Implement database abstraction, error checking (ref #5907) (#6107) 2019-11-29 09:11:52 +01:00
versioningconfiguration.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
wrapper.go lib/config, lib/connections: Remove ListenAddresses hack (#6188) 2019-11-26 17:07:25 +01:00