Documentation
¶
Index ¶
- Variables
- type Config
- type Hubro
- func (h *Hubro) AddModule(prefix string, module HubroModule, options any)
- func (h *Hubro) ErrorHandler(w http.ResponseWriter, r *http.Request, status int, message *string)
- func (hu *Hubro) FileServerWithDirectoryListingDisabled(h http.Handler) http.Handler
- func (h *Hubro) GetHandler() http.Handler
- func (h *Hubro) Render(w http.ResponseWriter, r *http.Request, templateName string, data any)
- func (h *Hubro) RenderWithLayout(w http.ResponseWriter, r *http.Request, layoutName string, templateName string, ...)
- func (h *Hubro) RenderWithoutLayout(w http.ResponseWriter, r *http.Request, templateName string, data any)
- func (h *Hubro) Start(startTime time.Time) error
- func (h *Hubro) Use(m Middleware)
- type HubroModule
- type Middleware
Constants ¶
This section is empty.
Variables ¶
View Source
var VendorLibs map[string]string = map[string]string{
"htmx": "/vendor/htmx/htmx.min.js",
"alpine.js": "/vendor/alpine.js/alpine.min.js",
"highlight.js": "/vendor/highlight/highlight.min.js",
}
Functions ¶
This section is empty.
Types ¶
type Hubro ¶
type Hubro struct {
Mux *http.ServeMux
Server *http.Server
Templates *template.Template
// contains filtered or unexported fields
}
func (*Hubro) ErrorHandler ¶
func (*Hubro) FileServerWithDirectoryListingDisabled ¶ added in v0.2.12
func (*Hubro) GetHandler ¶
GetHandler returns the http.Handler for the Hubro instance with all middlewares applied.
func (*Hubro) RenderWithLayout ¶
func (*Hubro) RenderWithoutLayout ¶
func (*Hubro) Use ¶
func (h *Hubro) Use(m Middleware)
Click to show internal directories.
Click to hide internal directories.