router

package
v0.0.0-...-db1d7af Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	DefaultBackendURL string
	Routes            []Route
	Dependencies      map[interface{}]interface{}
}

type Route

type Route struct {
	Method string
	Path   string
	Action interface{}
}

type Router

type Router interface {
	ServeHTTP(http.ResponseWriter, *http.Request)
}

func New

func New(args Args) Router

Jump to

Keyboard shortcuts

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