router

package
v0.0.0-...-aa06bc0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FS_STATIC         = "static"
	FS_UPLOAD_DROPLET = "upload_droplet"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers map[string]http.Handler

type Route

type Route struct {
	Handler string
	Method  string
	Path    string
}

func (Route) PathWithParams

func (r Route) PathWithParams(params map[string]string) (string, error)

type Routes

type Routes []Route

func NewFileServerRoutes

func NewFileServerRoutes() Routes

func (Routes) RouteForHandler

func (r Routes) RouteForHandler(handler string) (Route, bool)

func (Routes) Router

func (r Routes) Router(actions Handlers) (http.Handler, error)

Jump to

Keyboard shortcuts

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