Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFoundPage utils_types.TemplateExpression
View Source
var NotFoundTemplate *template.Template
Functions ¶
func InternalServerErrorHandler ¶
func InternalServerErrorHandler(w http.ResponseWriter, r *http.Request)
func NewEndpoint ¶
func NotFoundHandler ¶
func NotFoundHandler(w http.ResponseWriter, r *http.Request, Routes map[route]*endpoint)
Types ¶
type ErrorNotFound ¶
type ErrorNotFound struct{}
func (ErrorNotFound) Error ¶
func (n ErrorNotFound) Error() string
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RegisterEndpoint ¶
type TemplateNotFoundPageVars ¶
type TemplateNotFoundPageVars struct {
Routes map[route]*endpoint
}
Click to show internal directories.
Click to hide internal directories.