syncthing/cmd
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
..
stcli all: Remove dead code, fix lost msgLen checks (#6129) 2019-11-06 07:09:58 +01:00
stcompdirs lib: Folder marker is now a folder 2017-09-02 05:52:38 +00:00
stcrashreceiver cmd/stcrashreceiver: Store and serve compressed reports (#5892) 2019-07-28 11:13:04 +02:00
stdisco all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stdiscosrv cmd/stdiscosrv: Sort addresses before replication (fixes #6093) (#6094) 2019-10-18 10:50:19 +02:00
stevents all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stfileinfo all: Implement variable sized blocks (fixes #4807) 2018-04-16 19:08:50 +01:00
stfinddevice all: Remove global events.Default (ref #4085) (#5886) 2019-08-15 16:29:37 +02:00
stfindignored cmd/stfindignored: Default to current directory 2018-06-06 22:24:36 +02:00
stgenfiles all: Revert the underscore sillyness 2019-02-02 12:16:27 +01:00
stindex Implement database abstraction, error checking (ref #5907) (#6107) 2019-11-29 09:11:52 +01:00
strelaypoolsrv all: Use context in lib/dialer (#6177) 2019-11-26 07:39:51 +00:00
strelaysrv all: Use context in lib/dialer (#6177) 2019-11-26 07:39:51 +00:00
stsigtool cmd/stsigtool: Silence spurious Go 1.10 test/vet complaint 2017-12-10 19:42:17 +01:00
stupgrades cmd/stupgrades: Generate appropriate upgrade data (fixes #5924) (#5960) 2019-08-16 10:04:10 +02:00
stvanity all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stwatchfile all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
syncthing cmd/syncthing: Implement log rotation (fixes #6104) (#6198) 2019-11-28 12:26:14 +01:00
uraggregate cmd/ur*: Updates for 1.0 2019-01-03 21:46:02 +01:00
ursrv cmd/usrv: Use better caching 2019-08-29 19:49:27 +02:00
.gitignore Remove reprecated st* utils 2014-07-01 12:20:25 +02:00