From 56bab40bfccf04964776e206e0c82fa574d030c3 Mon Sep 17 00:00:00 2001 From: Charles <8595764@qq.com> Date: Sun, 7 Apr 2024 16:46:22 +0800 Subject: [PATCH] Fix typo (#375) sprc -> srpc --- README.md | 2 +- README_cn.md | 2 +- docs/docs-03-server.md | 2 +- docs/docs-07-srpc-http.md | 2 +- docs/en/docs-03-server.md | 2 +- docs/en/rpc.md | 2 +- docs/rpc.md | 2 +- tools/templates/rpc/CMakeLists.txt | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index faa5c0d5..58e046c6 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Bases on [Sogou C++ Workflow](https://github.com/sogou/workflow), it is an excel Its main features include: - * Support multiple RPC protocols: [`SPRC`](/tutorial/tutorial-01-srpc_pb_server.cc), [`bRPC`](/tutorial/tutorial-05-brpc_pb_server.cc), [`Thrift`](/tutorial/tutorial-07-thrift_thrift_server.cc), [`tRPC`](/tutorial/tutorial-11-trpc_pb_server.cc) + * Support multiple RPC protocols: [`SRPC`](/tutorial/tutorial-01-srpc_pb_server.cc), [`bRPC`](/tutorial/tutorial-05-brpc_pb_server.cc), [`Thrift`](/tutorial/tutorial-07-thrift_thrift_server.cc), [`tRPC`](/tutorial/tutorial-11-trpc_pb_server.cc) * Support multiple operating systems: `Linux`, `MacOS`, `Windows` * Support several IDL formats: [`Protobuf`](/tutorial/echo_pb.proto), [`Thrift`](/tutorial/echo_thrift.thrift) * Support several data formats transparently: `Json`, `Protobuf`, `Thrift Binary` diff --git a/README_cn.md b/README_cn.md index c978c37e..f869cf18 100644 --- a/README_cn.md +++ b/README_cn.md @@ -16,7 +16,7 @@ 底层基于[Sogou C++ Workflow](https://github.com/sogou/workflow),是高性能、低延迟、轻量级RPC系统的极佳选择。且加入了AOP面向切面的模块,支持Metrics(监控指标)和Trace(链路追踪)功能,可上报到多种云原生系统,包括OpenTelemetry。 主要功能和示例: - * 支持多种RPC协议:[`SPRC`](/tutorial/tutorial-01-srpc_pb_server.cc)、[`bRPC`](/tutorial/tutorial-05-brpc_pb_server.cc)、[`Thrift`](/tutorial/tutorial-07-thrift_thrift_server.cc)、[`tRPC`](/tutorial/tutorial-11-trpc_pb_server.cc) + * 支持多种RPC协议:[`SRPC`](/tutorial/tutorial-01-srpc_pb_server.cc)、[`bRPC`](/tutorial/tutorial-05-brpc_pb_server.cc)、[`Thrift`](/tutorial/tutorial-07-thrift_thrift_server.cc)、[`tRPC`](/tutorial/tutorial-11-trpc_pb_server.cc) * 支持多种操作系统:`Linux` / `MacOS` / `Windows` * 支持多种IDL格式:[`Protobuf`](/tutorial/echo_pb.proto)、[`Thrift`](/tutorial/echo_thrift.thrift) * 支持多种数据布局,使用上完全透明:`Json`、`Protobuf`、`Thrift Binary` diff --git a/docs/docs-03-server.md b/docs/docs-03-server.md index a58cfb0a..39a93083 100644 --- a/docs/docs-03-server.md +++ b/docs/docs-03-server.md @@ -16,7 +16,7 @@ - 想像一下,我们也可以从``Example::Service``派生更多的功能的rpc``Echo``不同实现的Service - 想像一下,我们可以在N个不同的端口创建N个不同的RPC Server、代表着不同的协议 - 想像一下,我们可以把同一个ServiceIMPL实例``add_service``到不同的Server上,我们也可以把不同的ServiceIMPL实例``add_service``到同一个Server上 -- 想像一下,我们可以用同一个``ExampleServiceImpl``,在三个不同端口、同时服务于BPRC-STD、SRPC-STD、SRPC-Http +- 想像一下,我们可以用同一个``ExampleServiceImpl``,在三个不同端口、同时服务于BRPC-STD、SRPC-STD、SRPC-Http - 甚至,我们可以将1个PB的``ExampleServiceImpl``和1个Thrift的``AnotherThriftServiceImpl``,``add_service``到同一个SRPC-STD Server,两种IDL在同一个端口上完美工作! ~~~cpp diff --git a/docs/docs-07-srpc-http.md b/docs/docs-07-srpc-http.md index 6af26110..7bdaabaa 100644 --- a/docs/docs-07-srpc-http.md +++ b/docs/docs-07-srpc-http.md @@ -1,6 +1,6 @@ [English version](/docs/docs-07-srpc-http.md) -## 07 - 使用SPRC、TRPC、Thrift发送Http +## 07 - 使用SRPC、TRPC、Thrift发送Http **SRPC**支持**HTTP**协议,只要把**idl**的内容作填到**HTTP**的**body**中,并且在**header**里填上**idl**的类型(**json**/**protobuf**/**thrift**),就可以与其他框架通过**HTTP**协议互通,由此可以实现跨语言。 diff --git a/docs/en/docs-03-server.md b/docs/en/docs-03-server.md index ec01f3de..702cf37d 100644 --- a/docs/en/docs-03-server.md +++ b/docs/en/docs-03-server.md @@ -19,7 +19,7 @@ You can follow the detailed example below: - Imagine that we can also derive more Serivce from `Example::Service`, which have different implementations of rpc `Echo`. - Imagine that we can create N different RPC Servers on N different ports, serving on different network protocols. - Imagine that we can use `add_service()` to add the same ServiceIMPL instance on different Servers, or we can use `add_service()` to add different ServiceIMPL instances on the same server. -- Imagine that we can use the same `ExampleServiceImpl`, serving BPRC-STD, SRPC-STD, SRPC-Http at three different ports at the same time. +- Imagine that we can use the same `ExampleServiceImpl`, serving BRPC-STD, SRPC-STD, SRPC-Http at three different ports at the same time. - And we can use `add_service()` to add one `ExampleServiceImpl` related to Protobuf IDL and one `AnotherThriftServiceImpl` related to Thrift IDL to the same SRPC-STD Server, and the two IDLs work perfectly on the same port! ~~~cpp diff --git a/docs/en/rpc.md b/docs/en/rpc.md index 23bbf8da..ebe765fa 100644 --- a/docs/en/rpc.md +++ b/docs/en/rpc.md @@ -140,7 +140,7 @@ You can follow the detailed example below: - Imagine that we can also derive more Serivce from `Example::Service`, which have different implementations of rpc `Echo`. - Imagine that we can create N different RPC Servers on N different ports, serving on different network protocols. - Imagine that we can use `add_service()` to add the same ServiceIMPL instance on different Servers, or we can use `add_service()` to add different ServiceIMPL instances on the same server. -- Imagine that we can use the same `ExampleServiceImpl`, serving BPRC-STD, SRPC-STD, SRPC-Http at three different ports at the same time. +- Imagine that we can use the same `ExampleServiceImpl`, serving BRPC-STD, SRPC-STD, SRPC-Http at three different ports at the same time. - And we can use `add_service()` to add one `ExampleServiceImpl` related to Protobuf IDL and one `AnotherThriftServiceImpl` related to Thrift IDL to the same SRPC-STD Server, and the two IDLs work perfectly on the same port! ~~~cpp diff --git a/docs/rpc.md b/docs/rpc.md index 196647c8..f9ffd525 100644 --- a/docs/rpc.md +++ b/docs/rpc.md @@ -128,7 +128,7 @@ public: - 想像一下,我们也可以从``Example::Service``派生出多个Service,而它们的rpc``Echo``实现的功能可以不同 - 想像一下,我们可以在N个不同的端口创建N个不同的RPC Server,代表着不同的协议 - 想像一下,我们可以把同一个ServiceIMPL实例``add_service()``到不同的Server上,我们也可以把不同的ServiceIMPL实例``add_service``到同一个Server上 -- 想像一下,我们可以用同一个``ExampleServiceImpl``,在三个不同端口、同时服务于BPRC-STD、SRPC-STD、SRPC-Http +- 想像一下,我们可以用同一个``ExampleServiceImpl``,在三个不同端口、同时服务于BRPC-STD、SRPC-STD、SRPC-Http - 甚至,我们可以将1个Protobuf IDL相关的``ExampleServiceImpl``和1个Thrift IDL相关的``AnotherThriftServiceImpl``,``add_service``到同一个SRPC-STD Server,两种IDL在同一个端口上完美工作! ~~~cpp diff --git a/tools/templates/rpc/CMakeLists.txt b/tools/templates/rpc/CMakeLists.txt index 135384d2..df79170e 100644 --- a/tools/templates/rpc/CMakeLists.txt +++ b/tools/templates/rpc/CMakeLists.txt @@ -56,7 +56,7 @@ set(SRPC_GEN_PROGRAM ${SRPC_BIN_DIR}/srpc_generator) %s add_custom_target(SRPC_GEN ALL COMMAND ${SRPC_GEN_PROGRAM} ${PROJECT_SOURCE_DIR}/${IDL_FILE} ${PROJECT_SOURCE_DIR} -s - COMMENT "sprc generator..." + COMMENT "srpc generator..." ) # Prefer to static link first