Skip to content

Commit

Permalink
[Issue 4752][docs] Add language tabs and description for Go (apache#5750
Browse files Browse the repository at this point in the history
)

### Motivation
Currently, the following features are not available in Go Functions: SerDe, metrics, state storage, user config. 

### Modifications
Add the language-specific tab for Go, and add a sentence "the feature is not available in Go".
  • Loading branch information
Jennifer88huang-zz authored and sijie committed Nov 27, 2019
1 parent e372cc9 commit 0ce3371
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions site2/docs/functions-develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ SerDe option | When to use
`PickleSerDe` | When you work with complex, application-specific types and are comfortable with the "best effort" approach of `pickle`.
Custom SerDe | When you require explicit control over SerDe, potentially for performance or data compatibility purposes.

<!--Go-->
Currently, the feature is not available in Go.

<!--END_DOCUSAURUS_CODE_TABS-->

### Example
Expand Down Expand Up @@ -558,6 +561,8 @@ class UserConfigFunction(Function):
else:
logger.info("The word of the day is {0}".format(wotd))
```
<!--Go-->
Currently, the feature is not available in Go.

<!--END_DOCUSAURUS_CODE_TABS-->

Expand Down Expand Up @@ -701,6 +706,8 @@ class MetricRecorderFunction(Function):
if input == 11:
context.record_metric('elevens-count', 1)
```
<!--Go-->
Currently, the feature is not available in Go.

<!--END_DOCUSAURUS_CODE_TABS-->

Expand All @@ -716,6 +723,9 @@ States are key-value pairs, where the key is a string and the value is arbitrary

You can access states within Pulsar Functions using the `putState`, `getState`, `incrCounter`, `getCounter` and `deleteState` calls on the context object. You can also manage states using the [querystate](#query-state) and [putstate](#putstate) options to `pulsar-admin functions`.

> Note
> State storage is not available in Go.
### API

<!--DOCUSAURUS_CODE_TABS-->
Expand Down

0 comments on commit 0ce3371

Please sign in to comment.