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