You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,13 +25,13 @@ tRPC-Go has the following features:
25
25
- All components are pluggable, with default implementations for various basic functionalities that can be replaced. Other components can be implemented by third parties and registered within the framework.
26
26
- All interfaces can be mock tested using gomock&mockgen to generate mock code, facilitating testing.
27
27
- The framework supports any third-party protocol by implementing the `codec` interfaces for the respective protocol. It defaults to supporting trpc and http protocols and can be switched at any time.
28
-
- It provides the [trpc command-line tool][trpc-go-cmdline] for generating code templates.
28
+
- It provides the [trpc command-line tool][trpc-cmdline] for generating code templates.
29
29
30
30
## Related Documentation
31
31
32
32
-[quick start guide][quick start] and [detailed documentation][docs]
33
33
- readme documents in each directory
34
-
-[trpc command-line tool][trpc-go-cmdline]
34
+
-[trpc command-line tool][trpc-cmdline]
35
35
-[helloworld development guide][helloworld]
36
36
-[example documentation for various features][features]
37
37
@@ -49,7 +49,7 @@ If you're interested in contributing, please take a look at the [contribution gu
Copy file name to clipboardExpand all lines: docs/user_guide/framework_conf.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -239,7 +239,7 @@ We have introduced that the startup of the program initializes the framework by
239
239
240
240
### Create Configurations through Tools
241
241
242
-
The framework configuration file can be automatically generated by [trpc-go-cmdline](https://github.com/trpc-group/trpc-go-cmdline) tool. The services defined in the PB file are automatically added to the configuration file.
242
+
The framework configuration file can be automatically generated by [trpc-cmdline](https://github.com/trpc-group/trpc-cmdline) tool. The services defined in the PB file are automatically added to the configuration file.
243
243
244
244
```shell
245
245
# generate the stub code and the framework configuration file "trpc_go.yaml" through PB file
Firstly, install the latest version of the [trpc-go-cmdline](https://github.com/trpc-group/trpc-go-cmdline) tool.
29
+
Firstly, install the latest version of the [trpc-cmdline](https://github.com/trpc-group/trpc-cmdline) tool.
30
30
31
31
Next, use the tool to generate flatbuffers corresponding stub code, which currently supports single-send and single-receive, server/client streaming, bidirectional streaming, etc.
32
32
@@ -38,7 +38,7 @@ First, define an IDL file. Its syntax can be learned from the flatbuffers offici
38
38
namespace trpc.testapp.greeter; // Equivalent to the "package" in protobuf.
39
39
40
40
// Equivalent to the "go_package" statement in protobuf.
41
-
// Note: "attribute" is a standard syntax in flatbuffers, and the "go_package=xxx" syntax is a custom support implemented by trpc-go-cmdline.
41
+
// Note: "attribute" is a standard syntax in flatbuffers, and the "go_package=xxx" syntax is a custom support implemented by trpc-cmdline.
table HelloReply { // "table" is equivalent to "message" in protobuf.
@@ -222,7 +222,7 @@ The load testing environment consisted of two machines with 8 cores, 2.5 GHz CPU
222
222
# FAQ
223
223
## Q1: How to generate stub code when other files are included in the .fbs file?
224
224
225
-
Refer to the following usage examples on https://github.com/trpc-group/trpc-go-cmdline/tree/main/testcase/flatbuffers:
225
+
Refer to the following usage examples on https://github.com/trpc-group/trpc-cmdline/tree/main/testcase/flatbuffers:
226
226
227
227
- 2-multi-fb-same-namespace: Multiple .fbs files with the same namespace are in the same directory (namespace in flatbuffers is equivalent to the package statement in protobuf), and one of the main files includes the other .fbs files.
228
228
- 3-multi-fb-diff-namespace: Multiple .fbs files are in the same directory with different namespaces. For example, the main file defining RPC references types in different namespaces.
0 commit comments