This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 0ce3371  [Issue 4752][docs] Add language tabs and description for Go 
(#5750)
0ce3371 is described below

commit 0ce3371b4fa6a5e1acb9deda6d8927bf8cb6da98
Author: Jennifer Huang <[email protected]>
AuthorDate: Thu Nov 28 02:15:48 2019 +0800

    [Issue 4752][docs] Add language tabs and description for Go (#5750)
    
    ### 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".
---
 site2/docs/functions-develop.md | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/site2/docs/functions-develop.md b/site2/docs/functions-develop.md
index 99be963..0dc7cf3 100644
--- a/site2/docs/functions-develop.md
+++ b/site2/docs/functions-develop.md
@@ -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
@@ -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-->
 
@@ -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-->
 
@@ -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-->

Reply via email to