Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler wraps a mux router.
func NewHandler ¶
func NewHandler( receiverHostname string, doer transporthttp.Doer, tracer tracing.Tracer, ) (Handler, error)
NewHandler returns a new http handler.
func (Handler) CreateTodo ¶
func (h Handler) CreateTodo(w http.ResponseWriter, r *http.Request)
type InvalidHandlerParameterError ¶
type InvalidHandlerParameterError struct {
// contains filtered or unexported fields
}
InvalidHandlerParameterError is used when an invalid parameter is passed to NewHandler.
func (InvalidHandlerParameterError) Error ¶
func (i InvalidHandlerParameterError) Error() string
Click to show internal directories.
Click to hide internal directories.