router

package
v5.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	Cl          controller.Controller
	ActionValue *reflect.Value
	Args        []string
}

type Router

type Router interface {
	MapRouteItems(cls ...controller.Controller)
	DefineRouteItem(pattern string, cl controller.Controller, actionName string)

	FindRoute(path string) *Route
}

type SimpleRouter

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

func NewSimpleRouter

func NewSimpleRouter() *SimpleRouter

func (*SimpleRouter) DefineRouteItem

func (this *SimpleRouter) DefineRouteItem(pattern string, cl controller.Controller, actionName string)

func (*SimpleRouter) FindRoute

func (this *SimpleRouter) FindRoute(path string) *Route

func (*SimpleRouter) MapRouteItems

func (this *SimpleRouter) MapRouteItems(cls ...controller.Controller)

func (*SimpleRouter) SetDefaultActionName

func (this *SimpleRouter) SetDefaultActionName(name string) *SimpleRouter

func (*SimpleRouter) SetDefaultControllerName

func (this *SimpleRouter) SetDefaultControllerName(name string) *SimpleRouter

Jump to

Keyboard shortcuts

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