Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AsControllerRoute ¶
func AsHandlerRoute ¶
Types ¶
type ControllerRoute ¶
type ControllerRoute interface {
RegisterControllerRoutes(rg *gin.RouterGroup)
RoutePattern() string
}
type HandlerRoute ¶
type Params ¶
type Params struct {
fx.In
Logger *zap.SugaredLogger `optional:"true"`
ControllerRoutes []ControllerRoute `group:"controllerRoutes"`
HandlerRoutes []HandlerRoute `group:"handlerRoutes"`
SwaggerHandler *SwaggerHandler
}
type Result ¶
func (*Result) GetHttpRouter ¶
type SwaggerHandler ¶
type SwaggerHandler struct{}
func NewSwaggerHandler ¶
func NewSwaggerHandler() *SwaggerHandler
func (*SwaggerHandler) GinHandler ¶
func (h *SwaggerHandler) GinHandler() gin.HandlerFunc
func (*SwaggerHandler) RoutePattern ¶
func (h *SwaggerHandler) RoutePattern() string
Click to show internal directories.
Click to hide internal directories.