paster_core

command module
v0.2.1-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2021 License: MIT Imports: 8 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
model
dto/kitex_gen/core/pastercore
Code generated by Kitex v0.0.3.
Code generated by Kitex v0.0.3.
po

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL