Documentation ¶
Overview ¶
Package app 生成swagger文档
文档规则请参考:https://github.com/swaggo/swag#declarative-comments-format
使用方式:
go get -u github.com/swaggo/swag/cmd/swag swag init --parseDependency --generalInfo ./internal/app/swagger.go --output ./internal/app/swagger
Index ¶
- Variables
- func Init(ctx context.Context, opts ...Option) (func(), error)
- func InitGinEngine(r router.IRouter) *gin.Engine
- func InitHTTPServer(ctx context.Context, handler http.Handler) func()
- func InitLogger() (func(), error)
- func InitMonitor(ctx context.Context) func()
- func Run(ctx context.Context, opts ...Option) error
- type Injector
- type Option
Constants ¶
This section is empty.
Variables ¶
InjectorSet 注入Injector
Functions ¶
func InitHTTPServer ¶
InitHTTPServer 初始化http服务
Types ¶
Click to show internal directories.
Click to hide internal directories.