Skip to content

Commit

Permalink
Merge pull request #27689 from loicmathieu/fix-funqy-gcf-guide
Browse files Browse the repository at this point in the history
Fix typos and wrong fonction class in the GCF Funqy guide
  • Loading branch information
loicmathieu authored Sep 2, 2022
2 parents 86a212c + 05f3f29 commit 9edef68
Showing 1 changed file with 5 additions and 5 deletions.
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-{gcf-invoker-version}.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

0 comments on commit 9edef68

Please sign in to comment.