Documentation
¶
Index ¶
- func DetectMimeType(input io.Reader) (mimeType string, recycled io.Reader, err error)
- func FillViewModel[T any](ctx context.Context, vmodel *T, r *http.Request, ...) error
- func HandleError(w http.ResponseWriter, r *http.Request, err error)
- type Error
- type HTTPError
- type Handler
- type UserFacingError
- type WithErrorLinks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectMimeType ¶
func FillViewModel ¶
func HandleError ¶
func HandleError(w http.ResponseWriter, r *http.Request, err error)
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (*Error) UserMessage ¶
UserMessage implements UserFacingError.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler() *Handler
type UserFacingError ¶
type WithErrorLinks ¶
Click to show internal directories.
Click to hide internal directories.