Skip to content

feat: improve tube configuration #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,7 @@ like `bin/example_basic.wasm`.

You have two ways to start the function stream server.

### Option 1: Standalone Mode (for development and testing)

Use this command to start the standalone server:

```shell
bin/function-stream standalone
```

### Option 2: Server Mode (for production)

First, start an Apache Pulsar service. See this [doc](https://pulsar.apache.org/docs/en/standalone/) for instructions.

Then, use this command to start the server based on Apache Pulsar:
Use this command to start the function stream server:

```shell
bin/function-stream server
Expand Down
16 changes: 3 additions & 13 deletions admin/client/docs/ModelFunction.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Name | Type | Description | Notes
**Namespace** | Pointer to **string** | | [optional]
**Replicas** | **int32** | |
**Runtime** | [**ModelRuntimeConfig**](ModelRuntimeConfig.md) | |
**Sink** | Pointer to [**ModelTubeConfig**](ModelTubeConfig.md) | | [optional]
**Source** | Pointer to [**[]ModelTubeConfig**](ModelTubeConfig.md) | | [optional]
**Sink** | [**ModelTubeConfig**](ModelTubeConfig.md) | |
**Source** | [**[]ModelTubeConfig**](ModelTubeConfig.md) | |

## Methods

### NewModelFunction

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

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

SetSink sets Sink field to given value.

### HasSink

`func (o *ModelFunction) HasSink() bool`

HasSink returns a boolean if a field has been set.

### GetSource

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

SetSource sets Source field to given value.

### HasSource

`func (o *ModelFunction) HasSource() bool`

HasSource returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
9 changes: 2 additions & 7 deletions admin/client/docs/ModelRuntimeConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Config** | Pointer to **map[string]interface{}** | | [optional]
**Type** | Pointer to **string** | | [optional]
**Type** | **string** | |

## Methods

### NewModelRuntimeConfig

`func NewModelRuntimeConfig() *ModelRuntimeConfig`
`func NewModelRuntimeConfig(type_ string, ) *ModelRuntimeConfig`

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

SetType sets Type field to given value.

### HasType

`func (o *ModelRuntimeConfig) HasType() bool`

HasType returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
9 changes: 2 additions & 7 deletions admin/client/docs/ModelTubeConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Config** | Pointer to **map[string]interface{}** | | [optional]
**Type** | Pointer to **string** | | [optional]
**Type** | **string** | |

## Methods

### NewModelTubeConfig

`func NewModelTubeConfig() *ModelTubeConfig`
`func NewModelTubeConfig(type_ string, ) *ModelTubeConfig`

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

SetType sets Type field to given value.

### HasType

`func (o *ModelTubeConfig) HasType() bool`

HasType returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
64 changes: 24 additions & 40 deletions admin/client/model_model_function.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 54 additions & 22 deletions admin/client/model_model_runtime_config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading