Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Params httprouter.Params BeatmapService cheesegull.BeatmapService FileResolver cheesegull.FileResolver ErrorHandler func(error) }
Context is the information about the request passed to an handler in the http package, alongside http.ResponseWriter and *http.Request.
func (*Context) HandleError ¶
HandleError handles an error, passing it to ErrorHandler or printing it and printing the stacktrace.
Click to show internal directories.
Click to hide internal directories.