Documentation ¶
Index ¶
- Variables
- func Delete(db model.Model, req *http.Request, r render.Render, params martini.Params)
- func Index(r render.Render)
- func Quote(db model.Model, r render.Render, params martini.Params, isJson IsJson)
- func QuotesBase(title string, orderBy []string) martini.Handler
- func Random(db model.Model, r render.Render, req *http.Request, isJson IsJson)
- func RenderError(r render.Render, code int, isJson IsJson, errorMessage string)
- func Status(r render.Render)
- func Submit(db model.Model, r render.Render)
- func SubmitForm(db model.Model, r render.Render, request *http.Request)
- func Vote(db model.Model, req *http.Request, r render.Render, params martini.Params)
- type ErrorEnv
- type ErrorPageEnv
- type IsJson
- type PageEnv
Constants ¶
This section is empty.
Variables ¶
View Source
var ( All = QuotesBase("All", []string{"quote.id ASC"}) Latest = QuotesBase("Latest", []string{"quote.id DESC"}) Search = QuotesBase("Search", []string{"quote.score DESC"}) Top = QuotesBase("Top", []string{"quote.score DESC"}) )
Functions ¶
Types ¶
type ErrorPageEnv ¶
Click to show internal directories.
Click to hide internal directories.