rclone/fs/accounting
Aleksandar Jankovic 4ba6532915 accounting: make stats response consistent
core/stats can return two different schemas in 'transferring' field.
One is object with fields the other is just plain string.
This is confusing, unnecessary and makes defining response schema
more difficult. It also returns `lastError` as value which can be
rendered differently depending on source of error.

This change standardizes 'transferring' filed to always return
object but with reduced fields if they are not available.
Former string item is converted to {name:remote_name} object.

'lastError' is forced to be a string as in some cases it can be encoded
as an object.
2019-07-28 14:48:19 +01:00
..
accounting.go accounting: make stats response consistent 2019-07-28 14:48:19 +01:00
accounting_other.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
accounting_test.go accounting: change stats interface 2019-07-28 14:48:19 +01:00
accounting_unix.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
inprogress.go accounting: isolate stats to groups 2019-07-28 14:48:19 +01:00
stats.go accounting: make stats response consistent 2019-07-28 14:48:19 +01:00
stats_groups.go docs: update documentation for stats 2019-07-28 14:48:19 +01:00
stats_test.go accounting: change stats interface 2019-07-28 14:48:19 +01:00
stringset.go accounting: isolate stats to groups 2019-07-28 14:48:19 +01:00
token_bucket.go rc: return current settings if core/bwlimit called without parameters 2019-06-24 13:22:24 +01:00
token_bucket_test.go rc: return current settings if core/bwlimit called without parameters 2019-06-24 13:22:24 +01:00
transfer.go accounting: add reference to completed transfers 2019-07-28 14:48:19 +01:00