router

package
v0.0.0-...-43cc7fa Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FS_STATIC                   = "static"
	FS_UPLOAD_DROPLET           = "upload_droplet"
	FS_UPLOAD_BUILD_ARTIFACTS   = "upload_build_artifacts"
	FS_DOWNLOAD_BUILD_ARTIFACTS = "download_build_artifacts"
)

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