Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNilHandler = errors.New("response handler cannot be nil")
)
Functions ¶
This section is empty.
Types ¶
type DefaultHandler ¶
type DefaultHandler struct {
// contains filtered or unexported fields
}
DefaultHandler struct
func NewDefaultHandler ¶
func NewDefaultHandler( jsonEncoder gonethttpjson.Encoder, ) (*DefaultHandler, error)
NewDefaultHandler function
func (*DefaultHandler) HandlerError ¶
func (d *DefaultHandler) HandlerError( w http.ResponseWriter, err error, )
HandlerError handles the error
type Handler ¶
type Handler interface {
HandleError(
w http.ResponseWriter,
err error,
)
}
Handler interface
Click to show internal directories.
Click to hide internal directories.