docs: Document 'config' arg to frontend actors
This commit is contained in:
parent
bfceb45609
commit
0c090499c5
@ -13,9 +13,12 @@ The following requirements applies to any frontend implementation:
|
||||
<http://pykka.readthedocs.org/>`_ actor, called the "main actor" from here
|
||||
on.
|
||||
|
||||
- The main actor MUST accept a constructor argument ``core``, which will be an
|
||||
:class:`ActorProxy <pykka.proxy.ActorProxy>` for the core actor. This object
|
||||
gives access to the full :ref:`core-api`.
|
||||
- The main actor MUST accept two constructor arguments:
|
||||
|
||||
- ``config``, which is a dict structure with the entire Mopidy configuration.
|
||||
|
||||
- ``core``, which will be an :class:`ActorProxy <pykka.proxy.ActorProxy>` for
|
||||
the core actor. This object gives access to the full :ref:`core-api`.
|
||||
|
||||
- It MAY use additional actors to implement whatever it does, and using actors
|
||||
in frontend implementations is encouraged.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user