package
3.3.10+incompatible
Repository: https://github.com/ivpn/desktop-app-daemon.git
Documentation: pkg.go.dev

# Functions

CreateSessionResp create new session info object to send to client.
GetCommandBase deserializing to CommandBase object.
GetTypeName returns objects type name (without package).
Send sends a command to a connection : init+serialize+send.

# Constants

Disconnection reason types.
Disconnection reason types.
Disconnection reason types.

# Structs

AccountStatus get account status.
AccountStatusResp - information about account status (or error info).
APIRequest do custom request to API.
APIResponse contains the raw data of response to custom API request.
CommandBase is a base object for communication with daemon.
ConfigParamsResp return s configuration parameters.
Connect request to establish new VPN connection.
ConnectedResp notifying about established connection.
DiagnosticsGeneratedResp returns info from daemon logs.
DisabledFunctionality Some functionality can be not accessible It can happen, for example, if some external binaries not installed (e.g.
Disconnect disconnect active VPN connection.
DisconnectedResp notifying about stopped connetion.
EmptyResp empty response on request.
ErrorResp response of error.
GetServers request servers list.
GetVPNState request daemon to provive current VPN connection state.
Hello is an initial request.
HelloResp response on initial request.
KillSwitchGetIsPestistentResp returns kill-switch persistance status.
KillSwitchGetStatus get full killswitch status.
KillSwitchSetAllowLAN enable\disable LAN acces for kill-switch.
KillSwitchSetAllowLANMulticast enable\disable LAN multicast acces for kill-switch.
KillSwitchSetEnabled request to enable\disable kill-switch.
KillSwitchSetIsPersistent request to mark kill-switch persistant.
KillSwitchStatusResp returns kill-switch status.
PingResultType represents information ping TTL for a host (is a part of 'PingServersResp').
PingServers request to ping servers.
PingServersResp returns average ping time for servers.
ServerListResp returns list of servers.
ServiceExitingResp service is going to exit response.
SessionDelete logout from current device.
SessionNew - create new session When force is set to true - all active sessions will be deleted prior to creating a new one if user reached session limit.
SessionNewResp - information about created session (or error info).
SessionResp information about session.
SetAlternateDns request to set custom DNS.
SetAlternateDNSResp returns status of changing DNS.
SetPreference sets daemon configuration parameter.
VpnStateResp returns VPN connection state.
WGHost is a WireGuard host description.
WiFiAvailableNetworks - get list of available WIFI networks.
WiFiAvailableNetworksResp - contains information about available WIFI networks.
WiFiCurrentNetwork - request info about connected WIFI.
WiFiCurrentNetworkResp contains the information about currently connected WIFI.
WiFiNetworkInfo - information about WIFI network.
WireGuardGenerateNewKeys - generate WG keys.
WireGuardSetKeysRotationInterval - change WG keys rotation interval.

# Type aliases

DisconnectionReason - disconnection reason.