plugin

package
v1.14.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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
)

Jump to

Keyboard shortcuts

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