🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

github.com/xiaohubai/rpc_layout

Package Overview
Dependencies
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/xiaohubai/rpc_layout

Source
Go Modules
Version
v1.0.0
Version published
Created
Source

开发过程

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

FAQs

Package last updated on 27 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts