Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility for multiple target/signature-type pairs? #269

Open
qTipTip opened this issue Aug 23, 2023 · 0 comments
Open

Possibility for multiple target/signature-type pairs? #269

qTipTip opened this issue Aug 23, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request P4

Comments

@qTipTip
Copy link

qTipTip commented Aug 23, 2023

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:

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P4
Projects
None yet
Development

No branches or pull requests

3 participants