Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error represents a handler error. It provides methods for a HTTP status code and embeds the built-in error interface.
type Handler ¶
type Handler struct { H func(e env.Env, w http.ResponseWriter, r *http.Request) error // contains filtered or unexported fields }
Handler struct that takes a configured BaseEnv and a function matching our signature.
type StatusError ¶
StatusError represents an error with an associated HTTP status code.
func NewStatusError ¶
func NewStatusError(code int, msg string) *StatusError
NewStatusError creates a new status error with a code and msg.
func (StatusError) Error ¶
func (se StatusError) Error() string
Error returns the status errors underlying error.
Click to show internal directories.
Click to hide internal directories.