GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python

Possibility for multiple target/signature-type pairs?

オープン
#269 コメント 0 件 リアクション 0 件 担当者 1 名 @janell-chen が担当を希望しています GitHub で見る
enhancement P4
主要言語
Python
スター
968
フォーク
128
PR マージ指標
30日以内にマージされた PR はありません

説明

Hello!

First of all, thanks for a great framework!

I have a question. You can specify the target and the signature type when running the `functions-framework` as such:

```
functions-framework --target=my_endpoint --signature-type=cloud-event
```

Is it possible to specify two different targets, with different signature-types?

Assuming I have the following code:

```python
import functions_framework

@functions_framework.http
def my_http_endpoint(request):
return "Hello world!"

@functions_framework.cloud_event
def my_event_endpoint(cloud_event):
return "Hello world!"
```

For instance by specifying multiple pairs:

```
functions-framework --target=my_event_endpoint --signature-type=cloud-event --target=my_http_endpoint --signature-type=http
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。