mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-11 03:13:51 +00:00
docs: Translate Chinese comments into English across multiple modules and fix grammatical issues
This commit is contained in:
1 parent
ee54ea26c3
commit
f565a86c23
14 files changed
+61
-56
No files matched your search
+4
-4
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
@@ -66,7 +66,7 @@
|
||||
<version>${zfoo.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 依赖的通信类库 -->
|
||||
<!-- Network communication libraries -->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>io.netty</groupId>-->
|
||||
<!-- <artifactId>netty-all</artifactId>-->
|
||||
@@ -207,7 +207,7 @@
|
||||
<version>${maven-jar-plugin.version}</version>
|
||||
</plugin>
|
||||
|
||||
<!-- deploy to maven repository should specify these tag.(部署到maven中央仓库必须指定下面的标签) -->
|
||||
<!-- deploy to maven repository should specify these tags -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
@@ -278,7 +278,7 @@
|
||||
</build>
|
||||
|
||||
|
||||
<!-- deploy to maven repository should specify these tag.(部署到maven中央仓库必须指定下面的标签) -->
|
||||
<!-- deploy to maven repository should specify these tags -->
|
||||
<name>net</name>
|
||||
<description>zfoo net is asynchronous, actor design, lock-free, universal RPC framework</description>
|
||||
<url>https://github.com/zfoo-project/zfoo</url>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<net:address name="firstZookeeper" url="127.0.0.1:2181"/>
|
||||
</net:registry>
|
||||
|
||||
<!--1.声明自己是个消费者 2.消费的接口是服务提供者是myProvider1提供的具体实现-->
|
||||
<!--1. Declare this node as a consumer 2. The consumed interface is the concrete implementation provided by myProvider1-->
|
||||
<net:consumers>
|
||||
<net:consumer consumer="provider1"/>
|
||||
</net:consumers>
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
<!-- native: internal messages; common: shared by all modules; js: web-facing protocol that generates JavaScript files -->
|
||||
<protocols>
|
||||
|
||||
<!-- 配置包名称,会扫描包底下所有被@Protocol注解标注的协�?-->
|
||||
<!-- Configure the package name; all classes annotated with @Protocol under the package will be scanned -->
|
||||
<module id="1" name="native">
|
||||
<protocol location="com.zfoo.net.router.attachment"/>
|
||||
</module>
|
||||
|
||||
<!-- Specifying protocol IDs in XML provides a centralized overview of the ID space -->
|
||||
<module id="2" name="common">
|
||||
<!-- 不写协议号,会使用协议里的@Protocol注解的id当做协议�?-->
|
||||
<!-- If the protocol ID is not specified here, the id from the @Protocol annotation will be used -->
|
||||
<protocol location="com.zfoo.net.packet.common.Message"/>
|
||||
<protocol location="com.zfoo.net.packet.common.Error"/>
|
||||
<protocol location="com.zfoo.net.packet.common.Heartbeat"/>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<net:address name="${registry.address.name}" url="${registry.address.url}"/>
|
||||
</net:registry>
|
||||
|
||||
<!--1.这里声明自己是服务提供�?2.提供接口是myProviderModule模块下的接口 3.提供者的名字是myProvider1-->
|
||||
<!--1. Declare this node as a service provider 2. The provided interface belongs to the myProviderModule module 3. The provider name is myProvider1-->
|
||||
<!--Multiple providers can be declared for the same module; consumers can select one, enabling provider-group routing-->
|
||||
<net:providers>
|
||||
<net:provider protocol-module="myProviderModule" provider="provider1"/>
|
||||
|
||||
Reference in new issue
Block a user