syncthing/cmd
Antony Male 7ef2743964 lib/events: Introduce per-subscription event IDs (fixes #3335)
Events API consumers rely on being able to detect that events were skipped
by the fact that the event ID has increased by more than 1. This is
documented, and is absolutely necessary when trying to maintain a local
model of Syncthing's state.

With the introduction of LocalChangeDetected, which is not exposed to the
Events API, this contract was broken.

This commit introduces separate concepts of a "Global ID" and a
"Subscription ID". The Global ID of an event is unique across all
subscriptions. The Subscription ID is local to a particular subscription,
and always increments by 1. They are both exposed over the Events API, but
the Subscription ID uses the key "id" for backwards compatibility, and
the "?since=xx" parameter refers to the Subscription ID (making the Global
ID for information only).

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3351
LGTM: calmh
2016-06-27 21:18:58 +00:00
..
discosrv cmd/discosrv: Fix lint warnings 2016-06-07 07:33:11 +00:00
relaysrv cmd/relaysrv: Fix lint warnings 2016-06-07 07:31:43 +00:00
stbench cmd/stbench: Add utility to run benchmark tests 2016-03-25 20:52:20 +00:00
stcompdirs mv internal lib 2015-08-09 09:35:26 +02:00
stdisco all: Correct spelling in comments 2016-05-08 10:54:22 +00:00
stevents Change (default) GUI port from 8080 to 8384 ('ST' in ascii values) 2015-03-26 21:36:06 +01:00
stfileinfo Fix import paths 2015-09-22 19:38:46 +02:00
stfinddevice lib/connections: Refactor 2016-05-04 19:38:12 +00:00
stgenfiles cmd/stgenfiles: Add utility for generating test data 2016-03-25 20:50:48 +00:00
stindex lib/db,cmd/stindex: Expose VersionList and use it in stindex 2016-05-31 19:29:26 +00:00
stsigtool cmd/stsigtool: Sign stdin when not given a file to sign, or when given "-" 2016-05-05 19:05:45 +00:00
stvanity cmd/stvanity: x509.GenerateCertificate requires pointer for public key 2016-04-28 22:22:33 +00:00
stwatchfile Add stwatchfile 2015-07-27 19:00:22 +01:00
syncthing lib/events: Introduce per-subscription event IDs (fixes #3335) 2016-06-27 21:18:58 +00:00
todos MPLv2 2015-03-17 16:02:27 +01:00
.gitignore Remove reprecated st* utils 2014-07-01 12:20:25 +02:00