Versions in this module Expand all Collapse all v0 v0.7.0 Dec 22, 2014 Changes in this version + type ByPattern []locPair + func (a ByPattern) Len() int + func (a ByPattern) Less(i, j int) bool + func (a ByPattern) Swap(i, j int) + type PathRouter struct + func NewPathRouter() *PathRouter + func (m *PathRouter) AddLocation(pattern string, location Location) error + func (m *PathRouter) GetLocationById(id string) Location + func (m *PathRouter) GetLocationByPattern(pattern string) Location + func (m *PathRouter) RemoveLocation(location Location) error + func (m *PathRouter) Route(req Request) (Location, error)