router

package
v0.0.0-...-1c2aa41 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerFunc

type HandlerFunc func(w http.ResponseWriter, r *http.Request) error

type Route

type Route struct {
	Method  string
	Path    string
	Handler HandlerFunc
}

func NewGetRoute

func NewGetRoute(path string, handler HandlerFunc) Route

func NewPostRoute

func NewPostRoute(path string, handler HandlerFunc) Route

func NewPutRoute

func NewPutRoute(path string, handler HandlerFunc) Route

func NewRoute

func NewRoute(method string, path string, handler HandlerFunc) Route

type Router

type Router interface {
	Routes() []Route
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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