wireguird/gui
Nikolay Lazarov 654eff94a4 Refactor button change state logic
This commit extracts the following functions from the button change
state callback:

 - `IsTunnelConnected(name string) (bool, error)` - checks if the
   tunnels is connected or returns an error
 - `DisconnectTunnel(name string) error` - disconnects from the tunnel
   or returns an error
 - `ConnectTunnel(name string) error` - connects to the tunnel or
   returns an error
 - `ToggleTunnel(name string) error` - toggles the
   connected/disconnected status of the tunnel
2024-10-31 02:28:11 +02:00
..
get v1 2023-03-30 04:26:00 +02:00
gui.go v1.1 2023-10-01 00:39:49 +02:00
tunnels.go Refactor button change state logic 2024-10-31 02:28:11 +02:00