Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module( "routes", fx.Provide(NewMainRouter), fx.Provide(NewAuthRouter), fx.Provide(NewUserRouter), fx.Provide(NewRoutes), fx.Provide(NewBlogRouter), fx.Provide(NewCommentRouter), fx.Provide(NewSwaggerRouter), )
Functions ¶
This section is empty.
Types ¶
type AuthRouter ¶
type AuthRouter struct {
// contains filtered or unexported fields
}
func NewAuthRouter ¶
func NewAuthRouter(handler lib.HttpHandler, authController controllers.AuthController) AuthRouter
func (AuthRouter) Setup ¶
func (r AuthRouter) Setup()
type BlogRouter ¶
type BlogRouter struct {
// contains filtered or unexported fields
}
func NewBlogRouter ¶
func NewBlogRouter(handler lib.HttpHandler, blogController controllers.BlogController) BlogRouter
func (BlogRouter) Setup ¶
func (r BlogRouter) Setup()
type CommentRouter ¶
type CommentRouter struct {
// contains filtered or unexported fields
}
func NewCommentRouter ¶
func NewCommentRouter(handler lib.HttpHandler, commentRouter controllers.CommentController) CommentRouter
func (CommentRouter) Setup ¶
func (r CommentRouter) Setup()
type MainRouter ¶
type MainRouter struct { Handler lib.HttpHandler // contains filtered or unexported fields }
func NewMainRouter ¶
func NewMainRouter(Handler lib.HttpHandler, mainController controllers.MainController) MainRouter
func (MainRouter) Setup ¶
func (r MainRouter) Setup()
type Routes ¶
type Routes []Route
func NewRoutes ¶
func NewRoutes( mainRouter MainRouter, authRouter AuthRouter, userRouter UserRouter, blogRouter BlogRouter, commentRouter CommentRouter, swaggerRouter SwaggerRouter, ) Routes
type SwaggerRouter ¶
type SwaggerRouter struct { Handler lib.HttpHandler // contains filtered or unexported fields }
func NewSwaggerRouter ¶
func NewSwaggerRouter(Handler lib.HttpHandler, config lib.Config) SwaggerRouter
func (SwaggerRouter) Setup ¶
func (r SwaggerRouter) Setup()
type UserRouter ¶
type UserRouter struct {
// contains filtered or unexported fields
}
func NewUserRouter ¶
func NewUserRouter(handler lib.HttpHandler, userController controllers.UserController) UserRouter
func (UserRouter) Setup ¶
func (r UserRouter) Setup()
Click to show internal directories.
Click to hide internal directories.