GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-nodejs

Receive CloudEvent and URL query parameters

Ouverte
#606 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
P3 question
Langage dominant
TypeScript
Étoiles
1.4k
Forks
181
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

CloudEvent signature type function is really useful.

I'm working on build a flow as below.
```
Pub/Sub topic A -> Eventarc A -v
Pub/Sub topic B -> Eventarc B ---> Function
Pub/Sub topic C -> Eventarc C -^
```
I would like to receive CloudEvents from several topics in the same Function instance and adjust the processing somewhat for each topic.

Eventarc allows to specify a service URL path when invoking a destination Function. So, I adjust the behavior of Function to fit the Pub/Sub Topic by using URL query parameters like `/?mailTo=foo@example.com`, `/?mailTo=bar@example.com` and so on.
This service URL path can be easily edited from the Cloud Console for ease of operation.

The current CloudEvent signature Function does not seem to have a way to obtain URL query parameters.
So I use the http signature type Function and unmarshall the Pub/Sub message and control the http response myself.

If we can use URL query parameters in CloudEvent signature type, we can build a more convenient and flexible system.
Is there a way to recieve URL query parameters in CloudEvent signature Function?
Or is there another better way?

Thanks.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

L’issue ne mentionne aucun fichier ni test. Commencez par suivre le traitement des requêtes de signature CloudEvent dans functions-framework-nodejs et déterminez si les paramètres de requête URL sont exposés ; le travail est considéré comme terminé lorsqu’il existe un moyen documenté et testé d’y accéder ou une alternative confirmée par un maintainer.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
google-cloud, nodejs, typescript
Domaine
api, backend, cloud
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.