How do I integrate existing http.Handlers with Revel ?
As shown in the concept diagram, the http.Handler is where Go hands off the user’s request for processing. Revel’s handler is extraordinarily simple, it just creates the Controller instance and passes the request to the Filter Chain.
Applications may integrate existing http.Handlers by overriding the default Handler:
What is the relationship between interceptors, filters, and modules ?
Modules are packages that can be plugged into an application. They allow sharing of controllers, views, assets, and other code between multiple Revel applications (or from third-party sources).
Filters are functions that may be hooked into the request processing pipeline. They generally apply to the application as a whole and handle technical concerns, orthogonal to application logic.
Interceptors are a convenient way to package data and behavior, since embedding a type imports its interceptors and fields. This makes interceptors useful for things like verifying the login cookie and saving that information into a field. Interceptors can be applied to one or more controllers.
Hot Reload is really slow with sqlite3 ?
github.com/mattn/go-sqlite3package has a five megabyte
- When building the package, this
.cfile is compiled and building a 5mb
.ctakes a while.
- So unless you
go installit. the package is built every time you build a package which depends on it.
See bug 290
go install github.com/mattn/go-sqlite3
Is there an SMTP mailer ?
Revel previously had a mailer, but this was removed (#633) in favour of a third party flexibility/quality/DRY. See: