Skip to content

Commit 79885fa

Browse files
authored
feat: improve tube configuration (#180)
1 parent 26c98a2 commit 79885fa

34 files changed

Lines changed: 493 additions & 577 deletions

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,7 @@ like `bin/example_basic.wasm`.
103103

104104
You have two ways to start the function stream server.
105105

106-
### Option 1: Standalone Mode (for development and testing)
107-
108-
Use this command to start the standalone server:
109-
110-
```shell
111-
bin/function-stream standalone
112-
```
113-
114-
### Option 2: Server Mode (for production)
115-
116-
First, start an Apache Pulsar service. See this [doc](https://pulsar.apache.org/docs/en/standalone/) for instructions.
117-
118-
Then, use this command to start the server based on Apache Pulsar:
106+
Use this command to start the function stream server:
119107

120108
```shell
121109
bin/function-stream server

admin/client/docs/ModelFunction.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Name | Type | Description | Notes
99
**Namespace** | Pointer to **string** | | [optional]
1010
**Replicas** | **int32** | |
1111
**Runtime** | [**ModelRuntimeConfig**](ModelRuntimeConfig.md) | |
12-
**Sink** | Pointer to [**ModelTubeConfig**](ModelTubeConfig.md) | | [optional]
13-
**Source** | Pointer to [**[]ModelTubeConfig**](ModelTubeConfig.md) | | [optional]
12+
**Sink** | [**ModelTubeConfig**](ModelTubeConfig.md) | |
13+
**Source** | [**[]ModelTubeConfig**](ModelTubeConfig.md) | |
1414

1515
## Methods
1616

1717
### NewModelFunction
1818

19-
`func NewModelFunction(name string, replicas int32, runtime ModelRuntimeConfig, ) *ModelFunction`
19+
`func NewModelFunction(name string, replicas int32, runtime ModelRuntimeConfig, sink ModelTubeConfig, source []ModelTubeConfig, ) *ModelFunction`
2020

2121
NewModelFunction instantiates a new ModelFunction object
2222
This constructor will assign default values to properties that have it defined,
@@ -160,11 +160,6 @@ and a boolean to check if the value has been set.
160160

161161
SetSink sets Sink field to given value.
162162

163-
### HasSink
164-
165-
`func (o *ModelFunction) HasSink() bool`
166-
167-
HasSink returns a boolean if a field has been set.
168163

169164
### GetSource
170165

@@ -185,11 +180,6 @@ and a boolean to check if the value has been set.
185180

186181
SetSource sets Source field to given value.
187182

188-
### HasSource
189-
190-
`func (o *ModelFunction) HasSource() bool`
191-
192-
HasSource returns a boolean if a field has been set.
193183

194184

195185
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

admin/client/docs/ModelRuntimeConfig.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**Config** | Pointer to **map[string]interface{}** | | [optional]
8-
**Type** | Pointer to **string** | | [optional]
8+
**Type** | **string** | |
99

1010
## Methods
1111

1212
### NewModelRuntimeConfig
1313

14-
`func NewModelRuntimeConfig() *ModelRuntimeConfig`
14+
`func NewModelRuntimeConfig(type_ string, ) *ModelRuntimeConfig`
1515

1616
NewModelRuntimeConfig instantiates a new ModelRuntimeConfig object
1717
This constructor will assign default values to properties that have it defined,
@@ -70,11 +70,6 @@ and a boolean to check if the value has been set.
7070

7171
SetType sets Type field to given value.
7272

73-
### HasType
74-
75-
`func (o *ModelRuntimeConfig) HasType() bool`
76-
77-
HasType returns a boolean if a field has been set.
7873

7974

8075
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

admin/client/docs/ModelTubeConfig.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**Config** | Pointer to **map[string]interface{}** | | [optional]
8-
**Type** | Pointer to **string** | | [optional]
8+
**Type** | **string** | |
99

1010
## Methods
1111

1212
### NewModelTubeConfig
1313

14-
`func NewModelTubeConfig() *ModelTubeConfig`
14+
`func NewModelTubeConfig(type_ string, ) *ModelTubeConfig`
1515

1616
NewModelTubeConfig instantiates a new ModelTubeConfig object
1717
This constructor will assign default values to properties that have it defined,
@@ -70,11 +70,6 @@ and a boolean to check if the value has been set.
7070

7171
SetType sets Type field to given value.
7272

73-
### HasType
74-
75-
`func (o *ModelTubeConfig) HasType() bool`
76-
77-
HasType returns a boolean if a field has been set.
7873

7974

8075
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

admin/client/model_model_function.go

Lines changed: 24 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

admin/client/model_model_runtime_config.go

Lines changed: 54 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)