Skip to content

静夜燃香

所有开始,不过是另一种结束

  • About
  • Contact
June 2018
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  
« Apr   Nov »

Categories

  • 流水账 (5)
  • 碎片 (6)

Recent Posts

  • 日本8天自由行流水账

    2019-01-10
  • 拉伸动作记录

    2018-11-07
  • Go – integrate swagger

    2018-06-12
  • 虾米播放记录同步last.fm

    2018-04-18
  • Go – Micro

    2018-03-01

Recent Comments

  • 缥缈 on Contact
  • Aloyzh on Contact
  • 缥缈 on Contact
  • Aloyzh on 虾米播放记录同步last.fm
  • volador on 虾米播放记录同步last.fm

Day: 12 June 2018

Go – integrate swagger

现有服务是用micro+protobuf+gRPC。现在每个服务都有个proto文件,完整定义了参数、传递消息及响应结果。主要实现步骤有三步

  1. 用.proto文件转换为swagger.json文件
  2. 合并所有swagger.json成为一个
  3. Serve the API

Continue reading Go – integrate swagger

Posted on 2018-06-122019-09-29Categories 碎片Tags golangLeave a comment on Go – integrate swagger
Proudly powered by WordPress