Documentation ¶
Index ¶
- type Config
- type ErrorOption
- type Message
- type Page
- type Service
- func (s *Service) Error(w http.ResponseWriter, r *http.Request, content map[string]any, err error, ...)
- func (s *Service) HandleSVG() http.Handler
- func (s *Service) HandleStatic(prefix string) http.Handler
- func (s *Service) Handler(templateFunc TemplateFunc) http.Handler
- func (s *Service) NewServeMux(templateFunc TemplateFunc) *http.ServeMux
- func (s *Service) PublicURL(url string) string
- func (s *Service) Redirect(w http.ResponseWriter, r *http.Request, pathname string, message Message)
- func (s *Service) RegisterMux(mux *http.ServeMux, templateFunc TemplateFunc)
- type TemplateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorOption ¶ added in v4.76.3
type ErrorOption func(errOption) errOption
func WithNoLog ¶ added in v4.76.3
func WithNoLog() ErrorOption
type Message ¶
func NewErrorMessage ¶
func NewKeyErrorMessage ¶ added in v4.78.0
func NewSuccessMessage ¶
func ParseMessage ¶
type Service ¶ added in v4.64.0
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Error ¶ added in v4.64.0
func (s *Service) Error(w http.ResponseWriter, r *http.Request, content map[string]any, err error, opts ...ErrorOption)
func (*Service) HandleStatic ¶ added in v4.77.0
func (*Service) Handler ¶ added in v4.64.0
func (s *Service) Handler(templateFunc TemplateFunc) http.Handler
func (*Service) NewServeMux ¶ added in v4.77.1
func (s *Service) NewServeMux(templateFunc TemplateFunc) *http.ServeMux
func (*Service) RegisterMux ¶ added in v4.77.3
func (s *Service) RegisterMux(mux *http.ServeMux, templateFunc TemplateFunc)
type TemplateFunc ¶
Click to show internal directories.
Click to hide internal directories.