router

package
v0.0.0-...-9a26578 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoute

func AddRoute(path string, action actions.Action)

AddRoute adds a route to the routing table

func DeleteRoute

func DeleteRoute(path string)

DeleteRoute deletes a route from the routing table

func RouteNames

func RouteNames(args string) []string

RouteNames returns the names of configured routes

func Routes

func Routes() map[string]actions.Action

Routes returns the routing table

Types

type Router

type Router struct {
}

Router is a basic http router for routes added from console

func (*Router) ServeHTTP

func (rt *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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