Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTMLHandler ¶
type HTMLHandler struct {
// contains filtered or unexported fields
}
func NewHTMLHandler ¶
func NewHTMLHandler(ctx context.Context, tmpl *template.Template) *HTMLHandler
func (*HTMLHandler) H ¶
func (h *HTMLHandler) H(f HTMLFunc) http.HandlerFunc
func (*HTMLHandler) SetErrorTemplateName ¶
func (h *HTMLHandler) SetErrorTemplateName(name string)
func (*HTMLHandler) SetSLogger ¶
func (h *HTMLHandler) SetSLogger(logger *slog.Logger)
type JSONHandler ¶
type JSONHandler struct {
// contains filtered or unexported fields
}
func NewJSONHandler ¶
func NewJSONHandler(ctx context.Context) *JSONHandler
func (*JSONHandler) H ¶
func (h *JSONHandler) H(f JSONFunc) http.HandlerFunc
func (*JSONHandler) SetSlogger ¶
func (h *JSONHandler) SetSlogger(logger *slog.Logger)
type JSONResponse ¶
Click to show internal directories.
Click to hide internal directories.