Skip to content
#

engineering

Here are 796 public repositories matching this topic...

iawia002
iawia002 commented Aug 30, 2019

现在我们很多 project 的目录结构都是自己定义的比较随意的那种,nirvana api 检测不到任何 descriptor

现在的想法是能不能在 run server 的时候再来生成 api docs,那个时候是已经拿到了所有 descriptor 的,也少了 nirvana api 检测/收集 descriptor 的步骤,把这个做成一个 Configurer,需要的话可以配置在启动 server 的时候生成文档或者直接把文档页面自动注册到当前 server 里,可以直接访问,比如:

$ go run main.go

INFO  0830-17:59:34.608+08 config.go:309 | Listening on :8080
INFO  0830-17:59:35.126+08 nirvana.go:231 | 

Improve this page

Add a description, image, and links to the engineering topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the engineering topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.