You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| port | string, require | Function serving port. |[ff-go](https://github.com/OpenFunction/functions-framework-go)| "50001" |
38
+
| input | object | Function input from bindings data, see [Input](#input). Empty means no input. |[ff-go](https://github.com/OpenFunction/functions-framework-go)||
39
+
| outputs | map | Function output to bindings data. <br />A map of Output objects. The key is the name of output. When using OpenFuncAsync as runtime, this name needs to be consistent with the corresponding Dapr component resource name. Refer to [this docs](https://docs.dapr.io/concepts/components-concept/) to learn about Dapr components. <br />The value is output object, see [Output](#output). Empty means no output. |[ff-go](https://github.com/OpenFunction/functions-framework-go)||
40
+
| runtime | enum, require | Function serving runtime, see [Runtime](#runtime). |[ff-go](https://github.com/OpenFunction/functions-framework-go)| "Knative", "OpenFuncAsync" |
41
+
| state | string | Used to store the states of the function in operation. |||
28
42
29
-
We currently support `HTTP` and `gRPC` protocol modes.
| name | string | Input name. When using Dapr as runtime, this name needs to be consistent with the corresponding Dapr component resource name. Refer to [this docs](https://docs.dapr.io/concepts/components-concept/) to learn about Dapr components. |[ff-go](https://github.com/OpenFunction/functions-framework-go)| "demo-kafka", "cron-job" |
| pattern | string | Input serving listening path. For HTTP functions, it can be set to "/somepath" while "somepath" for gRPC functions. This indicates the destination of the input data. |[ff-go](https://github.com/OpenFunction/functions-framework-go)| "echo", "/echo" |
47
-
| in_type | enum | Input type. Effective only when using Dapr as runtime. See [InType](#intype)|[ff-go](https://github.com/OpenFunction/functions-framework-go)||
61
+
| name | string | Input name. When using OpenFuncAsync as runtime, this name needs to be consistent with the corresponding Dapr component resource name. Refer to [this docs](https://docs.dapr.io/concepts/components-concept/) to learn about Dapr components. |[ff-go](https://github.com/OpenFunction/functions-framework-go)| "demo-kafka", "cron-job" |
62
+
| uri | string | Input serving listening path. This indicates the destination of the input data. |[ff-go](https://github.com/OpenFunction/functions-framework-go)| "echo" |
63
+
| params | map | Input params. When using OpenFuncAsync as runtime, you need to set the `type` (refer to [Input Type](#input-type)) parameter. |[ff-go](https://github.com/OpenFunction/functions-framework-go)| {"type": "pubsub"} |
48
64
49
-
#### InType
65
+
#### Input Type
50
66
51
-
Effective only when using Dapr as runtime.
67
+
Effective only when using OpenFuncAsync as runtime.
| bindings | Indicates that the input is the Dapr bindings component. Refer to [Bindings API reference](https://docs.dapr.io/reference/api/bindings_api/) to learn more about Dapr bindings components. |[ff-go](https://github.com/OpenFunction/functions-framework-go)|
56
-
| pubsub | Indicates that the input is the Dapr pubsub component. Refer to [Pub/sub API reference](https://docs.dapr.io/reference/api/pubsub_api/) to learn more about Dapr bindings components. <br />:heavy_exclamation_mark:Note that when using pubsub as input, the name of pubsub's topic should be assigned to the input's pattern. |[ff-go](https://github.com/OpenFunction/functions-framework-go)|
57
-
| invoke | Indicates that the input is the Dapr service invocation component. Refer to [Service invocation API reference](https://docs.dapr.io/reference/api/service_invocation_api/) to learn more about Dapr bindings components.<br />:heavy_exclamation_mark:Note that when using invoke as input, the name of invoke method should be assigned to the input's pattern. |[ff-go](https://github.com/OpenFunction/functions-framework-go)|
72
+
| pubsub | Indicates that the input is the Dapr pubsub component. Refer to [Pub/sub API reference](https://docs.dapr.io/reference/api/pubsub_api/) to learn more about Dapr bindings components. <br />:heavy_exclamation_mark:Note that when using pubsub as input, the name of pubsub's topic should be assigned to the input's uri. |[ff-go](https://github.com/OpenFunction/functions-framework-go)|
73
+
| invoke | Indicates that the input is the Dapr service invocation component. Refer to [Service invocation API reference](https://docs.dapr.io/reference/api/service_invocation_api/) to learn more about Dapr bindings components.<br />:heavy_exclamation_mark:Note that when using invoke as input, the name of invoke method should be assigned to the input's uri. |[ff-go](https://github.com/OpenFunction/functions-framework-go)|
| output_objects | map | A map of Output objects. <br />The key is the name of output. When using Dapr as runtime, this name needs to be consistent with the corresponding Dapr component resource name. Refer to [this docs](https://docs.dapr.io/concepts/components-concept/) to learn about Dapr components. <br />The value is output object, see [Output](#output)|[ff-go](https://github.com/OpenFunction/functions-framework-go)||
| pattern | string | Output serving listening path. For HTTP functions, it can be set to "/somepath" while "somepath" for gRPC functions. This indicates the destination of the out data. |[ff-go](https://github.com/OpenFunction/functions-framework-go)| true, false |
75
-
| out_type | enum | Output type. Effective only when using Dapr as runtime. See [OutType](#outtype)|[ff-go](https://github.com/OpenFunction/functions-framework-go)||
76
-
| params | map | Used to store parameters when using output. |[ff-go](https://github.com/OpenFunction/functions-framework-go)| {"method": "post"}, {"operation": "create"} |
| uri | string | Output serving listening path. This indicates the destination of the out data. |[ff-go](https://github.com/OpenFunction/functions-framework-go)| "echo" |
101
+
| params | map | When using OpenFuncAsync as runtime, you need to set the `type` (refer to [Output Type](#output-type)) parameter. <br />You also need to set other relevant parameters according to [Dapr's docs](https://docs.dapr.io/reference/api/). |[ff-go](https://github.com/OpenFunction/functions-framework-go)| {"method": "post"}, {"operation": "create"} |
77
102
78
-
##### OutType
103
+
##### Output Type
79
104
80
-
Effective only when using Dapr as runtime.
105
+
Effective only when using OpenFuncAsync as runtime.
| bindings | Indicates that the output is the Dapr bindings component. Refer to [Bindings API reference](https://docs.dapr.io/reference/api/bindings_api/) to learn more about Dapr bindings components. |[ff-go](https://github.com/OpenFunction/functions-framework-go)|
85
-
| pubsub | Indicates that the output is the Dapr pubsub component. Refer to [Pub/sub API reference](https://docs.dapr.io/reference/api/pubsub_api/) to learn more about Dapr bindings components. <br />:heavy_exclamation_mark:Note that when using pubsub as output, the name of pubsub's topic should be assigned to the output's pattern. |[ff-go](https://github.com/OpenFunction/functions-framework-go)|
86
-
| invoke | Indicates that the output is the Dapr service invocation component. Refer to [Service invocation API reference](https://docs.dapr.io/reference/api/service_invocation_api/) to learn more about Dapr bindings components.<br />:heavy_exclamation_mark:Note that when using invoke as output, the name of invoke method should be assigned to the output's pattern. |[ff-go](https://github.com/OpenFunction/functions-framework-go)|
110
+
| pubsub | Indicates that the output is the Dapr pubsub component. Refer to [Pub/sub API reference](https://docs.dapr.io/reference/api/pubsub_api/) to learn more about Dapr bindings components. <br />:heavy_exclamation_mark:Note that when using pubsub as output, the name of pubsub's topic should be assigned to the output's uri. |[ff-go](https://github.com/OpenFunction/functions-framework-go)|
111
+
| invoke | Indicates that the output is the Dapr service invocation component. Refer to [Service invocation API reference](https://docs.dapr.io/reference/api/service_invocation_api/) to learn more about Dapr bindings components.<br />:heavy_exclamation_mark:Note that when using invoke as output, the name of invoke method should be assigned to the output's uri. |[ff-go](https://github.com/OpenFunction/functions-framework-go)|
87
112
88
113
<divalign="right">
89
114
<b><a href="#context">↥ back to Context</a></b>
90
115
</div>
91
116
92
117
### Runtime
93
118
94
-
We currently support `Knative` and `Dapr` serving runtime.
119
+
We currently support `Knative` and `OpenFuncAsync` serving runtime.
0 commit comments