registrar

package
v0.0.0-...-925651e Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = []*cli.Command{
	commands.Inspire().Command,
}

Global Middleware

View Source
var LucidCommands = []*cli.Command{
	lucid_commands.DatabaseMigration(Migrations),
	lucid_commands.RouteRegistered(func() *mux.Router {
		return loader.NetHttp(lang.Load(translations.Languages)).
			AddGlobalMiddlewares(GlobalMiddleware).
			AddRouteMiddlewares(RouteMiddleware).
			Register(&Routes)
	}),
	lucid_commands.RouteDefined(func() *[]routes.Routing {
		return loader.NetHttp(lang.Load(translations.Languages)).
			AddGlobalMiddlewares(GlobalMiddleware).
			AddRouteMiddlewares(RouteMiddleware).
			Explain(&Routes)
	}),
}

Lucid commands that needs to pass-in the template configurations such as Translations, Routes, GlobalMiddleware and Route middleware

View Source
var Migrations = []interface{}{
	&migrations.UserMigration{},
}
View Source
var RouteMiddleware = map[string]interface{}{
	"auth": middlewares.AuthenticateMiddleware,
}

Route Middleware

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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