routes

package
v1.8.78 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenControllerBootstrap added in v1.8.31

func GenControllerBootstrap(config *lib.Config, dirs []string)

func GenRoutesAndPermissions

func GenRoutesAndPermissions(controllers []*lib.Controller, dirs []string, config *lib.Config) error

GenRoutes generates a list of routes from a directory of controller files

func GenTSRoutes added in v1.8.74

func GenTSRoutes(controllers []*lib.Controller, config *lib.Config) error

func LoadRoutes added in v1.8.74

func LoadRoutes(config *lib.Config) (*lib.RoutesJSONContainer, error)

Types

type TSRouteGenerator added in v1.8.74

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

func NewTSRouteGenerator added in v1.8.74

func NewTSRouteGenerator(c *lib.Controller) *TSRouteGenerator

func (*TSRouteGenerator) AddImport added in v1.8.74

func (t *TSRouteGenerator) AddImport(importType string)

Jump to

Keyboard shortcuts

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