route

package
v5.0.2-beta9 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 4 Imported by: 2

README

路由登记

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGroupNamer

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

func Apply

func Apply()

func GuestHandler

func GuestHandler(h interface{}) echo.Handler

func HandlerWithRequest

func HandlerWithRequest(handler interface{}, requests interface{}, methods ...string) echo.Handler

func Host

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

func IRegister

func IRegister() route.IRegister

func Logger

func Logger() logger.Logger

func MetaHandler

func MetaHandler(handler interface{}, m echo.H, requests ...interface{}) echo.Handler

func MetaHandlerWithRequest

func MetaHandlerWithRequest(handler interface{}, m echo.H, requests interface{}, methods ...string) echo.Handler

func Pre

func Pre(middlewares ...interface{})

func PreToGroup

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

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 Routes

func Routes() []*echo.Route

func SetRootGroup

func SetRootGroup(groupName string)

func Use

func Use(middlewares ...interface{})

func UseToGroup

func UseToGroup(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