-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #188 from camunda-community-hub/feature/custom-grp…
…c-channel Provide custom grpc channel
- Loading branch information
Showing
42 changed files
with
795 additions
and
591 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
======== | ||
Channels | ||
======== | ||
|
||
In order to instantiate a ZeebeWorker or ZeebeClient you will need to provide an instance of a `grpc.aio.Channel`. | ||
|
||
Pyzeebe provides a couple standard ways to achieve this: | ||
|
||
|
||
Insecure | ||
-------- | ||
|
||
Create a grpc channel connected to a Zeebe Gateway with tls disabled | ||
|
||
|
||
.. autoclass:: pyzeebe.create_insecure_channel | ||
:members: | ||
|
||
|
||
Example: | ||
|
||
.. code-block:: python | ||
from pyzeebe import create_insecure_channel | ||
channel = create_insecure_channel(hostname="zeebe", port=443) | ||
Secure | ||
------ | ||
|
||
Create a grpc channel with a secure connection to a Zeebe Gateway with tls | ||
|
||
.. autoclass:: pyzeebe.create_secure_channel | ||
:members: | ||
|
||
Example: | ||
|
||
.. code-block:: python | ||
import grpc | ||
from pyzeebe import create_secure_channel | ||
grpc.ssl_channel_credentials(root_certificates="<root_certificate>", private_key="<private_key>") | ||
channel = create_secure_channel(channel_credentials=credentials) | ||
Camunda Cloud | ||
------------- | ||
|
||
Create a grpc channel connected to a Zeebe Gateway running in camunda cloud | ||
|
||
.. autoclass:: pyzeebe.create_camunda_cloud_channel | ||
:members: | ||
|
||
Example: | ||
|
||
.. code-block:: python | ||
from pyzeebe import create_camunda_cloud_channel | ||
channel = create_camunda_cloud_channel("client_id", "client_secret", "cluster_id") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.