Skip to content

Commit

Permalink
Merge pull request #13 from bimpression/docs
Browse files Browse the repository at this point in the history
docs
  • Loading branch information
ngr committed Jan 25, 2019
2 parents 9840b7c + 3797a1b commit d89bf67
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 0 deletions.
56 changes: 56 additions & 0 deletions docs/components.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
==========
Components
==========

.. _components-config:

Config Source
-----------

.. automodule:: sosw.components.config
:members:


.. _components-helpers:

Helpers
-------

.. automodule:: sosw.components.helpers
:members:


.. _components-dynamo_db:

DynamoDB Client
---------------

.. automodule:: sosw.components.dynamo_db
:members:


.. _components-siblings:

Siblings
--------

.. automodule:: sosw.components.siblings
:members:


.. _components-sns:

SNS Manager
-----------

.. automodule:: sosw.components.sns
:members:


.. _components-tasks_api_client_for_workers:

tasks_api_client_for_workers
----------------------------

.. automodule:: sosw.components.tasks_api_client_for_workers
:members:
9 changes: 9 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ The three main components are Worker, Orchestrator and Scheduler.

Documentation is on the way full speed, for now you can read informative docstrings...

.. toctree::
:titlesonly:
:caption: Contents:

convention
../sosw/components/docs/index
processor
worker


Indices and tables
==================
Expand Down
9 changes: 9 additions & 0 deletions docs/orchestrator.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Worker
------

Worker should be used as parent class for your Lambda processors in your workers.
It has all the common methods of `sosw.app.Processor` and tries to close task in case it received some
`task_id` in the payload (event).

.. automodule:: sosw.worker
:members:
10 changes: 10 additions & 0 deletions docs/processor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Orchestrator
------------

| Orchestrator does the ... Orchestration.
| You can use the class in your Lambda as is, just configure some settings using one of the supported ways
in * :ref:`Config <components-config>`


.. automodule:: sosw.orchestrator
:members:
9 changes: 9 additions & 0 deletions docs/worker.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Worker
------

Worker should be used as parent class for your Lambda processors in your workers.
It has all the common methods of `sosw.app.Processor` and tries to close task in case it received some
`task_id` in the payload (event).

.. automodule:: sosw.worker
:members:

0 comments on commit d89bf67

Please sign in to comment.