Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorWriter ¶
func ErrorWriter(w http.ResponseWriter, err error)
ErrorWriter writes an UI error with the 500 status code.
func ErrorWriter404 ¶
func ErrorWriter404(w http.ResponseWriter, name string, ok bool)
ErrorWriter404 writes an UI error with a 404 code.
func ErrorWriterCustom ¶
func ErrorWriterCustom(w http.ResponseWriter, err error, code int, title string)
ErrorWriterCustom writes an UI error to the http.ResponseWriter with a custom status code.
func GetTemplate ¶
GetTemplate returns a template from the template map.
func RegisterHandlers ¶
func RegisterHandlers(r pure.IRouteGroup)
RegisterHandlers registers the handlers for the ui module.
Types ¶
Click to show internal directories.
Click to hide internal directories.