Documentation ¶
Index ¶
- func GenControllerBootstrap(config *lib.Config, dirs []string)
- func GenRoutesAndPermissions(controllers []*lib.Controller, dirs []string, config *lib.Config) error
- func GenTSRoutes(controllers []*lib.Controller, config *lib.Config) error
- func LoadRoutes(config *lib.Config) (*lib.RoutesJSONContainer, error)
- type TSRouteGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenControllerBootstrap ¶ added in v1.8.31
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)
Click to show internal directories.
Click to hide internal directories.