Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewUserRouter), fx.Provide(NewAuthRouter), fx.Provide(NewProfileRouter), fx.Provide(NewRecommendRouter), fx.Provide(NewRouters), )
Module exports dependency to container
Functions ¶
This section is empty.
Types ¶
type AuthRouter ¶
type AuthRouter struct {
// contains filtered or unexported fields
}
AuthRouter struct
func NewAuthRouter ¶
func NewAuthRouter( handler *core.RequestHandler, authController *controllers.AuthController, authMiddleware *middlewares.JWTMiddleware, corsMiddleware *middlewares.CorsMiddleware, logger *core.Logger, ) *AuthRouter
NewAuthRouter creates new user controller
type ProfileRouter ¶
type ProfileRouter struct {
// contains filtered or unexported fields
}
ProfileRouter struct
func NewProfileRouter ¶
func NewProfileRouter( handler *core.RequestHandler, profileController *controllers.ProfileController, authMiddleware *middlewares.JWTMiddleware, ) *ProfileRouter
func (*ProfileRouter) Setup ¶
func (r *ProfileRouter) Setup()
type RecommendRouter ¶
type RecommendRouter struct {
// contains filtered or unexported fields
}
RecommendRouter struct
func NewRecommendRouter ¶
func NewRecommendRouter( handler *core.RequestHandler, recommendController *controllers.RecommendController, authMiddleware *middlewares.JWTMiddleware, ) *RecommendRouter
func (*RecommendRouter) Setup ¶
func (r *RecommendRouter) Setup()
type Routers ¶
type Routers []Router
Routers contains multiple routes
func NewRouters ¶
func NewRouters( userRouter *UserRouter, authRouter *AuthRouter, profileRouter *ProfileRouter, recommendRouter *RecommendRouter, ) Routers
NewRouters sets up routes
type UserRouter ¶
type UserRouter struct {
// contains filtered or unexported fields
}
UserRouter struct
func NewUserRouter ¶
func NewUserRouter( handler *core.RequestHandler, userController *controllers.UserController, authMiddleware *middlewares.JWTMiddleware, ) *UserRouter
NewUserRouter creates new user controller
Click to show internal directories.
Click to hide internal directories.