Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultError ¶
type DefaultError struct { Error bool `json:"error"` Message interface{} `json:"message"` }
type DefaultHandler ¶
type DefaultHandler struct { MethodName string Handle listener.MethodMultipleHandler Listener listener.Listener }
func New ¶
func New(methodName string, handle listener.MethodMultipleHandler, listener listener.Listener) *DefaultHandler
func (*DefaultHandler) ServeHTTP ¶
func (c *DefaultHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ErrorHandler ¶
type ErrorHandler struct {
Code int
}
func (*ErrorHandler) ServeHTTP ¶
func (c *ErrorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.