BaseRouter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 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 Router

type Router struct {
	RouterTable
}

Router 路由器结构

func Init

func Init() *Router

Init 生成并初试化一个路由器

func (*Router) Register

func (r *Router) Register(path string, c BaseController.Controller)

Router.Register 路由注册

type RouterTable

type RouterTable struct {
	PathToController map[string]BaseController.Controller
}

RouterTable 路由表结构

Jump to

Keyboard shortcuts

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