Versions in this module Expand all Collapse all v1 v1.1.1 Dec 30, 2019 Changes in this version + func WriteOAuthError(w http.ResponseWriter, e HTTPError) error + type PlainErrEnvelope struct + Error string v1.1.0 Jan 4, 2019 Changes in this version + func RenderActivityJSON(w http.ResponseWriter, value interface{}, status int) error + func ReqJSON(r *http.Request) bool + func WriteError(w http.ResponseWriter, e HTTPError) error + func WriteRedirect(w http.ResponseWriter, e HTTPError) int + func WriteSuccess(w http.ResponseWriter, data interface{}, status int) error + type Envelope struct + Code int + Data interface{} + ErrorMessage string + ErrorType string + type HTTPError struct + Message string + Status int + func (h HTTPError) Error() string