route

package
v3.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

README

路由登记

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Hook = hook.New()
)

Functions

func AddGroupNamer

func AddGroupNamer(namers ...func(string) string)

func Apply

func Apply()

func Echo

func Echo() *echo.Echo

func GuestHandler

func GuestHandler(h interface{}) echo.Handler

func Host

func Host(hostName string, middlewares ...interface{}) *route.Host

func PublicHandler

func PublicHandler(h interface{}) echo.Handler

func Register

func Register(fn func(echo.RouteRegister))

func RegisterToGroup

func RegisterToGroup(groupName string, fn func(echo.RouteRegister), middlewares ...interface{})

func SetRootGroup

func SetRootGroup(groupName string)

func Use

func Use(groupName string, middlewares ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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