syncthing/lib/connections
Jakob Borg 2c866277a2 lib/api, lib/connections, gui: Show connection error for disconnected devices (fixes #3345) (#5727)
* lib/api, lib/connections, gui: Show connection error for disconnected devices (fixes #3345)

This adds functionality in the connetions service to track the last
error per address. That is in turn exposed in the /rest/system/status
API method, as that is also where we already show the listener status
from the connection service.

The GUI uses this info where it lists addresses, showing errors (if any)
in red underneath each address.

I also slightly refactored the existing status method on the connection
service to have a better name and return typed information.

* ok

* review

* formatting

* review
2019-05-16 22:11:45 +01:00
..
config.go Remove KCP (fixes #4737) (#4741) 2018-02-09 11:40:57 +01:00
connections_test.go Remove KCP (fixes #4737) (#4741) 2018-02-09 11:40:57 +01:00
debug.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
deprecated.go Remove KCP (fixes #4737) (#4741) 2018-02-09 11:40:57 +01:00
lan_test.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
limiter.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
limiter_test.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
relay_dial.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
relay_listen.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
service.go lib/api, lib/connections, gui: Show connection error for disconnected devices (fixes #3345) (#5727) 2019-05-16 22:11:45 +01:00
structs.go lib/api, lib/connections, gui: Show connection error for disconnected devices (fixes #3345) (#5727) 2019-05-16 22:11:45 +01:00
tcp_dial.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
tcp_listen.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
util.go lib/connections: Add KCP support (fixes #804) 2017-03-07 12:44:16 +00:00