command
module
Version:
v0.2.1-beta
Opens a new window with list of versions in this module.
Published: Aug 19, 2021
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
paster_core
Paster 服务端核心模块,使用字节跳动开源的微服务 RPC 框架 KiteX
通过 gRPC 协议与上游门面模块 paster_facade 通信。
时序图
环境 & 运行
⚠️ 由于 KiteX 框架依赖网络库 Netpoll 不支持 Windows,目前项目只能在 Linux, macOS 环境下构建。
本服务模块依赖以下组件:
首先复制 conf
目录下所有 *.example.yml
配置文件并重命名为 *.yml
,之后逐一配置。
kitex.yml
为 KiteX 框架服务启动配置,默认端口号为 8888
mysql.yml
为 MySQL 连接配置,其中 name
为数据库名,需要预先建立数据库
consul.yml
为 Consul 连接配置,其中 port
为注册中心端口号
配置完成后在项目根目录下执行以下命令来构建、运行项目。
sh build.sh
sh output/bootstrap.sh
⚠️ 请确保在运行项目前已经按照配置信息启动 MySQL 和 Consul 服务端。
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
|
|
|
|
model
|
|
|
|
|
Code generated by Kitex v0.0.3. |
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.