Documentation ¶
Index ¶
- type App
- func (a *App) Account(q ...sql.Querier) *sql.AccountStore
- func (a *App) Blog(q ...sql.Querier) *sql.BlogStore
- func (a *App) Logger(next http.Handler) http.Handler
- func (a *App) Post(q ...sql.Querier) *sql.PostStore
- func (a *App) WriteError(w http.ResponseWriter, r *http.Request, status int, messages ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
func (*App) WriteError ¶
WriteError writes an error message to w. If one or more messages are passed, a JSON response is also sent, with the first message becoming `error` and the second becoming `error_description`.
Click to show internal directories.
Click to hide internal directories.