Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapMap ¶
MapMap is essentially a goro-safe map[string]map[string]string specialized for handling multi-URL "URL Routes". MapMap is optimized for read-mostly patterns
func NewMapMapWithMapNames ¶
NewMapMapWithMapNames returns an initiaized MapMap, with the map names set to non-default values.
func (*MapMap) GetURLRoute ¶
GetURLRoute takes a routeName (first block of a hostname) and may return a reconstituted URLRoute. The Name is populated by the “routeName“ requested. The ID field is pulled from the value of the “ids“ map with the “routeName“ as key. The Endpoint field is pulled from the value of the “endpoints“ map with the “routeName“ as key. Partial results are returns as applicable.
func (*MapMap) Load ¶
Load takes an "Org Map" name and a filename, and builds a new "Org Map" from the file, .Set()ing it