Documentation ¶ Index ¶ func Expand(main *web.Route, rt RouteType) func Register(rt RouteType, f func() *web.Route) type RouteType Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Expand ¶ func Expand(main *web.Route, rt RouteType) Expand mount the extra routes to the main web router func Register ¶ func Register(rt RouteType, f func() *web.Route) Register register an extra route maker that will generate a web route to be attached to the specific main web router. this function should be called in plugins' init() function Types ¶ type RouteType ¶ type RouteType uint8 const ( NormalRoutes RouteType = iota ) Source Files ¶ View all Source files plugin.go Click to show internal directories. Click to hide internal directories.