routes

package
v0.0.0-...-042b7a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 Route

type Route interface {
	Setup()
}

type Routes

type Routes []Route

func NewRoutes

func NewRoutes(
	mainRouter MainRouter,
	authRouter AuthRouter,
	userRouter UserRouter,
	blogRouter BlogRouter,
	commentRouter CommentRouter,
	swaggerRouter SwaggerRouter,
) Routes

func (Routes) Setup

func (routes Routes) Setup()

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL