Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewPprofRoutes), fx.Provide(NewSwaggerRoutes), fx.Provide(NewPublicRoutes), fx.Provide(NewUserRoutes), fx.Provide(NewRoleRoutes), fx.Provide(NewRoutes), )
Module exports dependency to container
Functions ¶
This section is empty.
Types ¶
type PprofRoutes ¶
type PprofRoutes struct {
// contains filtered or unexported fields
}
func NewPprofRoutes ¶
func NewPprofRoutes( logger lib.Logger, handler lib.HttpHandler, ) PprofRoutes
NewUserRoutes creates new pprof routes
type PublicRoutes ¶
type PublicRoutes struct {
// contains filtered or unexported fields
}
func NewPublicRoutes ¶
func NewPublicRoutes( logger lib.Logger, handler lib.HttpHandler, publicController controllers.PublicController, captchaController controllers.CaptchaController, ) PublicRoutes
NewUserRoutes creates new public routes
type RoleRoutes ¶
type RoleRoutes struct {
// contains filtered or unexported fields
}
func NewRoleRoutes ¶
func NewRoleRoutes( logger lib.Logger, handler lib.HttpHandler, roleController controllers.RoleController, ) RoleRoutes
NewRoleRoutes creates new role routes
type Routes ¶
type Routes []Route
Routes contains multiple routes
func NewRoutes ¶
func NewRoutes( pprofRoutes PprofRoutes, swaggerRoutes SwaggerRoutes, publicRoutes PublicRoutes, userRoutes UserRoutes, roleRoutes RoleRoutes, menuRoutes MenuRoutes, ) Routes
NewRoutes sets up routes
type SwaggerRoutes ¶
type SwaggerRoutes struct {
// contains filtered or unexported fields
}
@securityDefinitions.apikey Authorization @in header @name Authorization @schemes http https @basePath / @contact.name LiuSha @contact.email liusha@email.cn
func NewSwaggerRoutes ¶
func NewSwaggerRoutes( config lib.Config, logger lib.Logger, handler lib.HttpHandler, ) SwaggerRoutes
NewUserRoutes creates new swagger routes
Click to show internal directories.
Click to hide internal directories.