rpc_layout

module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT

README

开发过程

kratos upgrade                                                               //安装依赖,升级版本
make init
kratos new github.com/xiaohubai/rpc_layout                                   //创建大仓
kratos new app/dict --nomod                                                  //大仓模式 公用go.mod
kratos proto add api/dict/v1/dict.proto                                      //添加proto文件
kratos proto client api/dict/v1/dict.proto                                   //生成client代码
kratos proto server api/dict/v1/dict.proto -t app/dict/internal/service      //生成server代码

wire

biz.repo定义接口,usecase实例的代码实现
data:实现的数据库连接,实现biz.repo接口定义
service : 关联到http grpc的调用实例和usercase
serve:service实例注册到grpc http

#TODO: 1.消费consume kafka,入es 和warn告警 2.获取字典序 rpc http方式 3.上传excel 和下载excel

Jump to

Keyboard shortcuts

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