Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInternal = &errors.RichError{Name: "internal", Code: 500, Desc: "An internal server error has occurred."}
View Source
var Logger = log.Default()
Functions ¶
func ServeError ¶
func UnsafeDisableCORS ¶
func UnsafeDisableCORS(resp http.ResponseWriter, req *http.Request)
Types ¶
type Middleware ¶
func (Middleware) ServeHTTP ¶
func (m Middleware) ServeHTTP(resp http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.