mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-09 09:50:30 +00:00
0cba3154f0
* lib/model: Remove bogus fields from connections API endpoint. Switch the returned data type for the /rest/system/connections element "total" to use only the Statistics struct. The other fields of the ConnectionInfo struct are not populated and misleading. * Lowercase JSON field names. * lib/model: Get rid of ConnectionInfo.MarshalJSON(). It was missing the StartedAt field from the embedded Statistics struct. Just lowercasing the JSON attribute names can be done just as easily with annotations. * lib/model: Remove bogus startedAt field from totals. Instead of using the Statistics type with one field empty, just switch to a free-form map with the three needed fields. |
||
---|---|---|
.. | ||
mocks | ||
benchmark_test.go | ||
bep_extensions.go | ||
bep.pb.go | ||
bufferpool_test.go | ||
bufferpool.go | ||
common_test.go | ||
compression_test.go | ||
compression.go | ||
conflict_test.go | ||
counting.go | ||
debug.go | ||
deviceid_test.go | ||
deviceid_test.pb.go | ||
deviceid.go | ||
doc.go | ||
encryption_test.go | ||
encryption.go | ||
errors.go | ||
hello_test.go | ||
hello.go | ||
LICENSE | ||
luhn_test.go | ||
luhn.go | ||
mocked_connection_info_test.go | ||
nativemodel_darwin.go | ||
nativemodel_unix.go | ||
nativemodel_windows_test.go | ||
nativemodel_windows.go | ||
protocol_test.go | ||
protocol.go | ||
vector_test.go | ||
vector.go | ||
wireformat.go |