Documentation ¶
Index ¶
- func NewRouter(ct pages.Controller, app core.App, fileFS fs.FS, csrfSecret []byte, ...) *chi.Mux
- type Controller
- func (ct Controller) Component(w http.ResponseWriter, r *http.Request, body templ.Component)
- func (ct Controller) Error(w http.ResponseWriter, r *http.Request, err error, code int)
- func (ct Controller) Meta(r *http.Request) meta.Meta
- func (ct Controller) Page(w http.ResponseWriter, r *http.Request, body templ.Component)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶ added in v0.13.0
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶ added in v0.13.0
func NewController(app core.App, timeHourFormat string) Controller
func (Controller) Component ¶ added in v0.13.0
func (ct Controller) Component(w http.ResponseWriter, r *http.Request, body templ.Component)
func (Controller) Error ¶ added in v0.13.0
func (ct Controller) Error(w http.ResponseWriter, r *http.Request, err error, code int)
func (Controller) Page ¶ added in v0.13.0
func (ct Controller) Page(w http.ResponseWriter, r *http.Request, body templ.Component)
Click to show internal directories.
Click to hide internal directories.