Core API
--------

.. autoclass:: proton.vpn.core.api.ProtonVPNAPI
   :members:
   :special-members: __init__
   :undoc-members:

VPN Connector
-------------

Orchestrators delegate the operations on Controllers, which themselves delegate operations to the
components (VPNConnection component, VPNAccount component, VPNServers components, etc)

.. code-block:: ascii

                                         +------+
                                         | View |
                                         +---+--+
                                             |
                                          +--v--+
                                          | App |
                                          +--+--+
                                             |
                                             |
                  +---------------+  +-------v--------+
                  | Session       |  | Connection     |
                  | Orchestrator  <--+ Orchestrator   +---------+------------------+
                  +------+--------+  +--------+-------+         |                  |
                        |                     |                 |                  |
                        |                     |                 |                  |
                        |                     |         +-------v------+     +-----v--------+
                        |                     |         | VPN Servers  |     | User Settings|
           +-------------+                    |         | Orchestrator |     | Orchestrator |
           |             |                    |         +-------+------+     +--------------+
           |             |                    |                 |
   +-------v---+         |                    |                 |
   |Proton VPN |  +------v------+   +---------v-----+   +-------v------+
   |Session    |  | Credentials |   |VPN Connection |   | VPN Servers  |
   |Controller |  | Controller  |   | Controller    |   | Controller   |
   +-----------+  +-------------+   +---------------+   +--------------+


See :

-  :class:`proton.vpn.core.controllers.vpnsession.VPNSessionController`
-  :class:`proton.vpn.core.cache_handler.CacheHandler`
-  :class:`proton.vpn.core.usage.UsageReporting`
-  :class:`proton.vpn.core.controllers.vpnservers.VPNServersController`

For controllers documentation.

Orchestrators
--------------

.. autoclass:: proton.vpn.core.vpnconnector.VPNConnector
   :members:
   :special-members: __init__
   :undoc-members:

.. autoclass:: proton.vpn.core.vpnconnector.VPNStateSubscriber
   :members:
   :special-members: __init__
   :undoc-members:

.. autoclass:: proton.vpn.core.registry.Registry
   :members:
   :special-members: __init__
   :undoc-members:

.. autoclass:: proton.vpn.core.session_holder.SessionHolder
   :members:
   :special-members: __init__
   :undoc-members:



Controllers
--------------

Controllers implement the high level business logic of the application, ensuring that the VPN
service is in a consistent state.

.. autoclass:: proton.vpn.core.cache_handler.CacheHandler
   :members:
   :special-members: __init__
   :undoc-members:

.. autoclass:: proton.vpn.core.usage.UsageReporting
   :members:
   :special-members: __init__
   :undoc-members:

.. autoclass:: proton.vpn.core.controllers.vpnservers.VPNServersController
   :members:
   :special-members: __init__
   :undoc-members:

.. autoclass:: proton.vpn.core.controllers.vpnsession.VPNSessionController
   :members:
   :special-members: __init__
   :undoc-members:


User Settings
-------------

.. autoclass:: proton.vpn.core.controllers.usersettings.BasicSettings
   :members:
   :special-members: __init__
   :undoc-members:


Persistence
--------

.. autoclass:: proton.vpn.core.controllers.usersettings.FilePersistence
   :members:
   :special-members: __init__
   :undoc-members:


Views
------

An abstract view of the user interface.

.. autoclass:: proton.vpn.core.views.BaseView
   :members:
   :special-members: __init__
   :undoc-members:


