Documentation ¶
Index ¶
- type Route
- type Router
- type SimpleRouter
- func (this *SimpleRouter) DefineRouteItem(pattern string, cl controller.Controller, actionName string)
- func (this *SimpleRouter) FindRoute(path string) *Route
- func (this *SimpleRouter) MapRouteItems(cls ...controller.Controller)
- func (this *SimpleRouter) SetDefaultActionName(name string) *SimpleRouter
- func (this *SimpleRouter) SetDefaultControllerName(name string) *SimpleRouter
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
Click to show internal directories.
Click to hide internal directories.