http

package
v0.0.0-...-8b4ae58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 11 Imported by: 0

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)

func (Handler) Router

func (h Handler) Router() *mux.Router

Router returns the inner router.

type InvalidHandlerParameterError

type InvalidHandlerParameterError struct {
	// contains filtered or unexported fields
}

InvalidHandlerParameterError is used when an invalid parameter is passed to NewHandler.

func (InvalidHandlerParameterError) Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL