Skip to content

Commit

Permalink
docs: update message_type doc (#779)
Browse files Browse the repository at this point in the history
Co-authored-by: copy rogers <[email protected]>
  • Loading branch information
ppzqh and rogerogers authored Oct 16, 2023
1 parent e9ba735 commit bf48807
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions content/en/docs/kitex/Tutorials/basic-feature/message_type.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ service EchoService {
}
```

The layout of generated code might be:
The layout of generated code:

```
.
Expand All @@ -60,7 +60,7 @@ The layout of generated code might be:
└── k-echo.go
```

The handler code in server side might be:
The handler code on server side:

```go
package main
Expand Down Expand Up @@ -93,7 +93,7 @@ func main() {

#### PingPong

The code in client side might be:
The code on client side:

```go
package main
Expand All @@ -120,7 +120,7 @@ func main() {

#### Oneway

The code in client side might be:
The code on client side:

```go
package main
Expand All @@ -147,12 +147,12 @@ func main() {

## Protobuf

Kitex supports two kind of protocols that carries Protobuf payload:
Kitex supports two kinds of protocols that carry Protobuf payload:

- Kitex Protobuf
- Only supports the PingPong type of messages. If any streaming method is defined in the IDL, the protocol will switch to gRPC.
- The gRPC Protocol
- The protocol that shipped with gRPC.
- Be able to interoperate with gRPC. Use the same definition as gRPC service, and supports Unary (PingPong) and Streaming calls.

### Example

Expand Down Expand Up @@ -182,7 +182,7 @@ service EchoService {
}
```

The generated code might be:
The generated code:

```
.
Expand All @@ -196,7 +196,7 @@ The generated code might be:
└── server.go
```

The handler code in server side:
The handler code on server side:

```go
package main
Expand Down

1 comment on commit bf48807

@vercel
Copy link

@vercel vercel bot commented on bf48807 Oct 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.