router

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func C_DefaultHandler

func C_DefaultHandler(c config.IConfig) (f func(http.ResponseWriter, *http.Request))

func C_IndexHandler

func C_IndexHandler(c config.IConfig) (f func(http.ResponseWriter, *http.Request))

func C_LoginHandler

func C_LoginHandler(c config.IConfig) (f func(http.ResponseWriter, *http.Request))

control下的路由处理handler在此处理

func I_LoginHandler

func I_LoginHandler(c config.IConfig) (f func(http.ResponseWriter, *http.Request))

func I_UserHandler

func I_UserHandler(c config.IConfig) (f func(http.ResponseWriter, *http.Request))

api下的路由处理handler在此处理

func RegisterApi

func RegisterApi(r *Router)

func RegisterUrl

func RegisterUrl(r *Router)

注册路由

Types

type Router

type Router struct {
	Router *mux.Router
	Config config.IConfig
	Logger *middleware.Log
}

func NewRouter

func NewRouter(Config config.IConfig, Logger *middleware.Log) *Router

func (*Router) InitRouter

func (r *Router) InitRouter() *Router

register url

Jump to

Keyboard shortcuts

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