http

package
v0.0.0-...-14c02b6 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceUnavailableMsg string = "Something bad happened, please try again later"

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(service todo.Service) *API

func (*API) Create

func (a *API) Create(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func (*API) Delete

func (a *API) Delete(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func (*API) Get

func (a *API) Get(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func (*API) List

func (a *API) List(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func (*API) ServeHTTP

func (a *API) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler, delegating to the httprouter.Router.

Jump to

Keyboard shortcuts

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