Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = []*cli.Command{ commands.Inspire().Command, }
View Source
var GlobalMiddleware = []interface{}{ middlewares.HttpAccessLogMiddleware, middlewares.CsrfShouldSkipMiddleware, middlewares.CsrfProtectMiddleware, middlewares.CsrfSetterMiddleware, }
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.
Click to show internal directories.
Click to hide internal directories.