route

package
v0.0.0-...-5318e64 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRouterUninitialized 路由未初始化
	ErrRouterUninitialized = errors.New("router uninitialized")
)

Functions

This section is empty.

Types

type Router

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

Router 路由

func New

func New(c *controller.Controller, cnf *config.Config) *Router

New new router

func (*Router) Init

func (r *Router) Init()

Init 注册路由

func (*Router) Run

func (r *Router) Run() error

Run listern http

Jump to

Keyboard shortcuts

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