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

Fix typos and wrong fonction class in the GCF Funqy guide #27689

Merged
merged 1 commit into from
Sep 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/src/main/asciidoc/funqy-gcp-functions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ NOTE: Function return type can also be Mutiny reactive types.
this is a convenient class to deserialize a PubSub message.
3. This is a background function that takes as parameter a `io.quarkus.funqy.gcp.functions.event.StorageEvent`,
this is a convenient class to deserialize a Google Storage event.
4. This is a cloud events functions, that takes as parameter a `io.cloudevents.CloudEvent`,
inside it the `getData()` method will return the event content, storage event in this case.
4. This is a cloud events function, that takes as parameter a `io.cloudevents.CloudEvent`,
inside it the `getData()` method will return the event content, a storage event in this case.

NOTE: we provide convenience class to deserialize common Google Cloud event inside the `io.quarkus.funqy.gcp.functions.event` package.
NOTE: we provide convenience class to deserialize common Google Cloud events inside the `io.quarkus.funqy.gcp.functions.event` package.
They are not mandatory to use, you can use any object you want.

As our project contains multiple function, we need to specify which function needs to be deployed via the following property inside our `application.properties` :
As our project contains multiple functions, we need to specify which function needs to be deployed via the following property inside our `application.properties` :

[source,property]
----
Expand Down Expand Up @@ -341,7 +341,7 @@ For cloud events functions, you launch the invoker with a target class of `io.qu
----
java -jar java-function-invoker-1.1.0.jar \
--classpath target/funqy-google-cloud-functions-1.0.0-SNAPSHOT-runner.jar \
--target io.quarkus.funqy.gcp.functions.FunqyBackgroundFunction
--target io.quarkus.funqy.gcp.functions.FunqyCloudEventsFunction
----

IMPORTANT: The `--classpath` parameter needs to be set to the previously packaged JAR that contains your function class and all Quarkus related classes.
Expand Down