router

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRouter

type BaseRouter struct {
	// contains filtered or unexported fields
}

BaseRouter is a base router to be embedded in all routers, and it implements Router interface.

func (*BaseRouter) Load

func (b *BaseRouter) Load(rg *gin.RouterGroup)

func (*BaseRouter) Register

func (b *BaseRouter) Register(path string, router Router)

type Router

type Router interface {
	// Register registers routes.
	Register(path string, router Router)
	// Load registers routes to gin router in once.
	Load(group *gin.RouterGroup)
}

Router is interface for router

Jump to

Keyboard shortcuts

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