Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/xiaohubai/rpc_layout

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/xiaohubai/rpc_layout

  • v1.0.0
  • Source
  • Go
  • Socket score

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc