Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
*Controllers
}
App is a sample controller.
type Controllers ¶
type Controllers struct { *requests.Requests *templates.Templates *sessions.Sessions *static.Static `@get:"/"` }
Controllers is a struct that should be embedded into every controller of your app to make methods and fields provided by standard controllers available.
func (*Controllers) Before ¶
func (c *Controllers) Before() http.Handler
Before is a magic action that is executed on every request before any other action.
Only structures with at least one action are treated as controllers. So, do not delete this method.
Click to show internal directories.
Click to hide internal directories.