Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Declaring base controller BaseController controller.BaseController // Register web router Router = WebRouter() // Get app configuration Configuration = config.Configuration() // Register all models Models = []interface{}{ model.User{}, model.FailedJob{}, } // Register all controllers. Every controller must be implemented as a pointer to struct. // See the basic implementation to see the correct way to register a new controller. Controllers = []interface{}{ &controller.UserController{}, &controller.AuthController{}, &controller.HomeController{}, } // Register service container Container *dig.Container )
Functions ¶
func GetControllerInterface ¶
func GetControllerInterface(directive []string, w http.ResponseWriter, r *http.Request) interface{}
Returns a specific controller instance by comparing "directive" parameter with controller name.
Types ¶
type HttpKernel ¶
Click to show internal directories.
Click to hide internal directories.