routerrest

package
v2.12.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(rt *router.Router, handler interface{}) (m map[method.Method]*route.Route)

Types

type DeleteHandler

type DeleteHandler interface {
	Delete(http.ResponseWriter, *http.Request)
	ItemPath() string
}

type GetHandler

type GetHandler interface {
	Get(http.ResponseWriter, *http.Request)
	ItemPath() string
}

type IndexHandler

type IndexHandler interface {
	Index(http.ResponseWriter, *http.Request)
	ListPath() string
}

type PatchHandler

type PatchHandler interface {
	Patch(http.ResponseWriter, *http.Request)
	ItemPath() string
}

type PostHandler

type PostHandler interface {
	Post(http.ResponseWriter, *http.Request)
	ListPath() string
}

Jump to

Keyboard shortcuts

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