Skip to content
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

docs: Update start.md #988

Merged
merged 2 commits into from
Sep 20, 2023
Merged
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
41 changes: 41 additions & 0 deletions docs/zh/start/uds/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ go build -o layotto
```

### step 2. 启动测试demo
<!-- tabs:start -->
#### **Go**

构建、运行 go 语言 demo:

Layotto提供了通过UDS调用gRPC接口的示例 [demo](https://github.com/mosn/layotto/blob/main/demo/uds/client.go)

Expand All @@ -85,3 +89,40 @@ go build client.go
./client
```

#### **Java**

构建、运行 java 语言 demo:

Layotto java-sdk已经支持通过UDS调用gRPC接口

```shell @if.not.exist java-sdk
git clone https://github.com/layotto/java-sdk
```

切换目录:

```shell
cd java-sdk
```

构建:

```shell @if.not.exist examples-uds/target/examples-uds-jar-with-dependencies.jar
# build example jar
mvn -f examples-uds/pom.xml clean package
```

运行:

```
java -jar examples-uds/target/examples-uds-jar-with-dependencies.jar
```

打印出以下信息说明运行成功:

```bash
greeting, helloworld
```

<!-- tabs:end -->

Loading